home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / MEDICAL / 1212B.ZIP / CASP.DOC < prev    next >
Text File  |  1988-05-02  |  141KB  |  3,616 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.        
  8.        
  9.                       THE CDC ANTHROPOMETRIC SOFTWARE PACKAGE
  10.                                     Version 3.0
  11.                             TUTORIAL GUIDE AND HANDBOOK
  12.        
  13.                               By Michael Dennis Jordan
  14.        
  15.        
  16.        
  17.        
  18.        
  19.        
  20.          The complete instruction set for using the anthropometric analysis
  21.                                software based on the
  22.        
  23.                CDC Standard Deviation-Derived Growth Reference Curves
  24.                      Derived from NCHS/CDC Reference Population
  25.        
  26.            NCHS Growth Curves for Children, Birth-18 years, United States
  27.             Series 11-number 165, DHEW Publication number (PHS) 78-1650
  28.        
  29.        
  30.        
  31.        
  32.             Software by Michael D. Jordan. Anthropometric subroutine set
  33.                 supported by Norman W. Staehling, Div. of Nutrition,
  34.                      Center for Health Promotion and Education
  35.        
  36.                   Supported, in part, by the Office of Nutrition,
  37.                      Agency for International Development (AID)
  38.                          under RSSA # BST-1064-R-HC-2174-03
  39.        
  40.        
  41.        
  42.        
  43.        
  44.        
  45.        
  46.        
  47.        
  48.        
  49.        This software is in the public domain and available without cost.
  50.        Technical assistance may be obtained by writing to the author.
  51.        
  52.        THE CENTERS FOR DISEASE CONTROL
  53.        Center for Health Promotion and Education
  54.        Division of Nutrition, Statistics Branch
  55.        1600 Clifton Road
  56.        Atlanta, Georgia 30333
  57.        
  58.        Second Printing
  59.        April 1987
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.                                   ACKNOWLEDGEMENTS
  74.        
  75.                                     Foremost to
  76.                        NORMAN W. STAEHLING, MS, Statistician
  77.          who maintains the FORTRAN version of the anthropometric subroutine
  78.                    upon which the microcomputer version is based.
  79.        
  80.        Furthermore, the author extends gratitude to the following individuals
  81.                and institutions for their contributions and guidance.
  82.        
  83.                           The Centers for Disease Control
  84.        
  85.                               Frederick Trowbridge, MD
  86.                                 Ronald Fichtner, PhD
  87.                                   Barbara Sullivan
  88.                                  Faye Wong, MPH, RD
  89.                                  Richard Peck, MPH
  90.                                   Steve Ilardi, BS
  91.        
  92.        
  93.           The Johns Hopkins University School of Hygiene and Public Health
  94.        
  95.                                Shiriki Kumanyika, PhD
  96.                                 Sandra Huffman, ScD
  97.        
  98.                     The International Food Policy Research Group
  99.        
  100.                                  Bruce Cogill, PhD
  101.                                           
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                                           i
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.                                 FOR VERSION 2 USERS
  140.        
  141.             In Mid-1985,  The Centers  for Disease Control, Center for Health
  142.        Promotion  and  Education,  distributed  the  second  release  of  the
  143.        Anthropometric Statistical  Package (CASP).  The patients files you've
  144.        made with Version 2 are not compatible with Version 3.0.
  145.        
  146.             SWAP, a  supplemental program  found on  the  supplemental  files
  147.        diskette of  this package,  will convert your old Version 2 files into
  148.        Version 3.0 files.
  149.        
  150.             The  conversion   program  makes   files  with   three  different
  151.        extensions: ETB, TXT and FLD.
  152.        
  153.             ETB files  are SWAP-converted  files that can be used immediately
  154.        in the version 3.0 ENTRY and TAB programs. They are direct conversions
  155.        of the  Version 2  data including  the anthropometric  indices.  Note:
  156.        since SWAP  performs no recomputations there is no way for the program
  157.        to detect  when it is copying an Edit Flagged record.  (See EDIT FLAGS
  158.        in the  user handbook).   There is no Edit Flag field in the Version 2
  159.        files to  copy therefore  the Edit  Flag field  in the Version 3.0 ETB
  160.        files will all be blank.
  161.        
  162.             TXT are conversions of Version 2 files into an ASCII file without
  163.        the anthropometric indices.  Some programmers call them batch files or
  164.        rectangular  files.  The  ASCII  file  is  a  bonus.  There  are  many
  165.        applications for  this TXT  file because  it can  be easily  read  and
  166.        edited by other programs.
  167.        
  168.             TXT files  contain all  the data  from the  individual records in
  169.        Version 2  files except the anthropometric indices.  The BATCH program
  170.        in this  package can  reprocess the  TXT files  and apply the computed
  171.        indices.   The processed  files are also output as ASCII files.  BATCH
  172.        also produces ETB files.
  173.        
  174.             The advantage  of reprocessing the TXT into a new ETB is that you
  175.        will  obtain   anthropometric  indices  that  are  calculated  by  the
  176.        algorithms identical to those in the Centers' central computer.
  177.        
  178.             FLD is  a field location template and partner to TXT file. You'll
  179.        need it  should you  decide to  reprocess the TXT file with BATCH. FLD
  180.        contains all  the field  locations for I.D., age, sex, height, weight,
  181.        and all extra classification variables, if any. Read BATCH for further
  182.        details about FLD files.
  183.        
  184.             Lotus 1-2-3*  compatibility promised in Version 2 was never fully
  185.        successful.   In Version  3.0 there is a program called LCHANGE on the
  186.        supplemental files  diskette that will convert ETB and TAB files to 1-
  187.        2-3 PRN files.  Read Appendix D for further details.
  188.        
  189.        * Lotus  1-2-3 and  Dbase used  throughout this manual are copyrighted
  190.        trademark names  used by  Lotus  Corporation  and  Ashton-Tate,  Inc.,
  191.        respectively.
  192.        
  193.  
  194.  
  195.  
  196.                                          ii
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.                                        WAIT!
  206.        
  207.        
  208.             Before you use any of the software in the package, protect your
  209.        materials:
  210.                                 COPY YOUR DISKETTES!
  211.        
  212.             The Program  Diskette contains  the most  essential parts  of the
  213.        Anthropometric Software  Package.  The Supplemental Files Diskette has
  214.        sample files that will help you learn to use the package properly.
  215.        
  216.             The files  on the two diskettes are not copy protected.  In fact,
  217.        we urge  you to  copy them  before you  do anything else.  Some of the
  218.        sample files  are used  in the tutorial portions of the documentation.
  219.        You will  have to read from and write to some of these files.  If they
  220.        are lost  or you  accidentally ruin  them in the learning process, you
  221.        will not be able to finish the tutorial.
  222.        
  223.             Use only copies of the diskettes, not the originals.
  224.        
  225.             If you have a computer with a non-removable hard disk, you should
  226.        create a  directory (consult  your DOS  manual) and  copy  the  entire
  227.        package into your new directory.
  228.        
  229.        
  230.                              INVENTORY OF CASP PACKAGE
  231.        
  232.        1 User Registration Form  (MUST be filled out and sent to CDC!)
  233.        1 User's Tutorial and Guidebook
  234.        1 5.25 inch DS/DD Program Diskette containing:
  235.        
  236.                ENTRY.EXE
  237.                TAB.EXE
  238.                BATCH.EXE
  239.                DATA
  240.        
  241.        1 5.25 inch DS/DD Supplemental Files Diskette containing:
  242.        
  243.                DEMOBAT.TXT
  244.                DEMOTAB.TAB
  245.                SAMPLE.ETB
  246.                SWAP.EXE
  247.                LCHANGE.EXE
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.                                          iii
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.        
  272.                                  TABLE OF CONTENTS
  273.        Introduction                                                    1
  274.        
  275.        How to use this Handbook                                        2
  276.        
  277.        Chapter I Using the Entry Program
  278.             1.1  Making an Anthropometric Calculation                  4
  279.             1.2  Editing Your Entries                                  7
  280.             1.3  Edit Flags                                            7
  281.             1.4  Making Patient Record Files                           8
  282.             1.5  Creating Extra Classification Variables               8
  283.             1.6  Entering Records Into Patient Files                  10
  284.             1.7  Setting Tabs                                         11
  285.             1.8  Searching and Viewing Records                        12
  286.             1.9  Editing Records                                      13
  287.             1.10  Deleting Records                                    14
  288.             1.11  Making Field-Specific Inclusive/Exclusive Searches  14
  289.             1.12  Transferring and Sub-setting Files                  16
  290.             1.13  Sample Weights                                      16
  291.             1.14  Merging Files                                       19 
  292.        
  293.        Chapter II Using the Tab Program
  294.             2.1  Planning a Cross-Tabulation                          21
  295.             2.2  The Interval Template                                22
  296.             2.3  Editing Interval Templates                           26
  297.             2.4  Performing the Cross-Tabulation                      26
  298.             2.5  Saving Cross-Tabulation Intervals                    27
  299.             2.6  Printing the Cross-Tabulation                        28
  300.        
  301.        Chapter III Making and Using Histograms
  302.             3.1  Where to Begin                                       30
  303.             3.2  Fetching the Data                                    30
  304.             3.3  Making the Histogram                                 31
  305.             3.4  Precision Bar Heights                                33
  306.             3.5  N-Shift                                              34
  307.             3.6  Summary of Steps                                     34
  308.             3.7  Graphing the Means                                   35
  309.        
  310.        Chapter IV Using the Batch Program
  311.             4.1  Preparing Raw Data for Batch Processing              36
  312.             4.2  Processing the Raw Data File                         37
  313.             4.3  Examining Source Data File                           38 
  314.             4.4  Identifying Field Locations                          39
  315.             4.5  Convert and Compute Source File                      42
  316.             4.6  Converting Batch Files to Output Files               44
  317.        
  318.        Appendix A The Mathematical Operators                          47
  319.        
  320.        Appendix B Files Made By Version 3                             48
  321.        
  322.        Appendix C Accuracy of Anthropometric Indices                  49
  323.        
  324.        Appendix D Lotus Compatibility                                 50
  325.  
  326.  
  327.  
  328.                                          iv
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                         1
  335.  
  336.  
  337.        
  338.                                     INTRODUCTION
  339.        
  340.        
  341.               WHAT CAN I DO WITH THE ANTHROPOMETRIC SOFTWARE PACKAGE?
  342.        
  343.             The  CDC   Anthropometric  Software  Package  consists  of  three
  344.        programs called  ENTRY, TAB  and BATCH, and a reference data set.  The
  345.        programs perform  several related tasks that allow the user to go from
  346.        raw, disorganized  data  to  precisely  calculated  and  statistically
  347.        analyzed listings, cross-tabulations, and presentation graphics.
  348.        
  349.             The  principal   uses  of   the  software   package  are   record
  350.        maintenance,  anthropometric  calculation  and  statistical  analysis.
  351.        Although  there   are  already   many  statistical  analysis  packages
  352.        available, this  one, developed  by the  Division of Nutrition, Center
  353.        for Health Promotion and Education at the Centers for Disease Control,
  354.        is customized for public health professionals.
  355.        
  356.             The programs  were  made  to  operate  on  IBM-compatible  micro-
  357.        computers including  the portables.  For field-oriented work there are
  358.        enough features  in the  software to operate a fully independent field
  359.        site capable of cross-tabulating 50,000 patient records.
  360.        
  361.             The output  files from ENTRY and BATCH are saved in a format that
  362.        allows them  to be  transmitted to  mainframe and  micro computers and
  363.        used by other statistical analysis programs.
  364.        
  365.             A micro-computer  operating under  IBM DOS  2.1 or  higher with a
  366.        minimum of  256K and  a dot matrix printer are the basic equipment. If
  367.        you can get one, a color monitor is recommended over a monochrome.
  368.        
  369.             The next  few pages  describe in  detail the  capabilities of the
  370.        three programs in the package ENTRY, TAB and BATCH.
  371.        
  372.        THE ENTRY PROGRAM
  373.        
  374.             The  ENTRY   program   is   principally   used   for   performing
  375.        anthropometric calculations  and creating  patient files.   When given
  376.        age, sex,  height and  weight, the program returns the percentiles, z-
  377.        scores,  and  percent  of  medians  for  height/age,  weight/age,  and
  378.        height/weight.  These calculations can be saved in a file named by the
  379.        user with  the patient's  identification if  desired. The  program can
  380.        manage 5000  records per file.  Also the user may create 24 additional
  381.        fields to collect other data.
  382.        
  383.             Among other features are:
  384.        
  385.             1. a provision for weighting data
  386.             2. a probable error flag
  387.             3. the capability to search and separate all error-flagged
  388.        records or records with common characteristics
  389.             4. sub-setting and merging of files
  390.             5. listing by fields
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                         2
  401.  
  402.  
  403.        
  404.        
  405.        THE TAB PROGRAM
  406.        
  407.             The TAB  program is  used for making cross-tabulations of patient
  408.        records saved  with ENTRY  or converted  from other  sources with  the
  409.        BATCH program.   The  user chooses three variables from a patient file
  410.        and divides  them into intervals.  The program presents the results on
  411.        screen or  paper.   The results  can be  saved and presented again for
  412.        briefings or reprints.
  413.        
  414.             Among the major features are:
  415.        
  416.             1. the capability to crosstabulate weighted data
  417.             2. histogram (bar graphs) for color monitor owners
  418.             3. save/recall  features for  tab results  and intervals used for
  419.        results
  420.             4.  uniformly  formatted  printed  tabulations  with  titles  and
  421.        footnotes
  422.             5. the  capability to calculate cell-by-cell means on any numeric
  423.        variable
  424.        
  425.        THE BATCH PROGRAM
  426.        
  427.             The BATCH program is used to perform calculations and conversions
  428.        upon raw  files of  data called  "batch files."   Batch files can come
  429.        from mainframe  computers or  other PC  software.   If the  batch file
  430.        contains enough  information to  derive the patient's sex, age, height
  431.        and  weight,  you  only  have  to  provide  column  location  of  this
  432.        information and  the files will be processed one after another without
  433.        user interaction.  The finished files may be cross-tabbed with TAB and
  434.        edited with ENTRY.
  435.        
  436.             Among the major features are:
  437.        
  438.             1. on/off filter for edit-flagged records
  439.             2. available printout of all flagged records
  440.             3. full graphic display of batch records and trial processing
  441.             4. field locations can be saved as a template for easy re-use
  442.             5. the capability to produce processed ASCII output files
  443.             
  444.        
  445.              HOW TO USE THIS HANDBOOK AND SURVIVE THE LEARNING PROCESS
  446.        
  447.             Much to  the dismay  of programmers  and technical  writers,  the
  448.        typical computer  user doesn't  like to read.  Most over-anxious would
  449.        rather jump  into a program and read the instructions after the damage
  450.        is done.
  451.        
  452.             Unfortunately,  using  this  software  package--successfully,  at
  453.        least---won't be  that simple.   You  must use  this handbook  if  you
  454.        intend to be a proficient user.
  455.        
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                         3
  467.  
  468.  
  469.             This handbook is more of a tutorial than a reference manual.  The
  470.        user performs  the functions  in the  programs as he reads about them.
  471.        The handbook  uses step-by-step  examples.   The user  is expected  to
  472.        participate as he reads.  The user is expected to apply the experience
  473.        gained from using the handbook examples to real-world cases.
  474.        
  475.             You will need a copy of the program diskette and the supplemental
  476.        diskette.  Do not use your original diskettes.
  477.        
  478.             If you have a computer with a non-removable hard disk, you should
  479.        have already  created a  directory and  you should  use your hard disk
  480.        copy.
  481.        
  482.             Ideally you should try all the exercises in the handbook. However
  483.        the applicability  of all the material in the handbook may differ from
  484.        user to user.
  485.        
  486.             FOR USERS WHO WILL ENTER DATA MANUALLY: Read Chapters 1 thru
  487.        3.  You may read Chapter 4 and practice the examples for familiarity.
  488.        
  489.             FOR ADVANCED  USERS, ESPECIALLY  THOSE WITH  MAINFRAME ACCESS  OR
  490.        BATCH FILES:  Read Chapter 4 first and move on to Chapters 1, 2 and 3.
  491.        
  492.             Do not  start in the middle of a chapter. To be fully proficient,
  493.        you must read and practice all the examples in each chapter.
  494.                                           
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.                                         4
  533.  
  534.  
  535.                                           
  536.                          CHAPTER I  USING THE ENTRY PROGRAM
  537.        
  538.        
  539.             To start  the data  entry and  computation  program,  insert  the
  540.        program diskette  in drive  A and  type ENTRY.  If you have copied the
  541.        programs to hard disk, boot up in the usual manner and type ENTRY.
  542.        
  543.             When the  program starts,  the first  thing it will do is load up
  544.        the growth curve reference set from the disk file DATA.  After this is
  545.        done and  the menu appears, you may remove the program diskette if you
  546.        are using it on a floppy disk drive.
  547.        
  548.             The menu  offers six  choices.  The last choice [6] Escape to DOS
  549.        turns off  the program and returns the computer to its start-up state.
  550.        (DOS stands for Disk Operating System).
  551.        
  552.        1.1 MAKING AN ANTHROPOMETRIC CALCULATION
  553.        
  554.             Anthropometric calculations  are performed  in function  [1] Data
  555.        Entry and Interactive Computation.
  556.        
  557.             Press [1].
  558.        
  559.             The program  may be  used as an anthropometric calculator or as a
  560.        data entry  program.   It's called  Interactive because  it pauses for
  561.        responses from the user.
  562.             First, get  acquainted with  the program  by studying the screen.
  563.        Notice how many fields there are on the screen.
  564.        
  565.             Press the  return/enter and  backspace keys a few times and watch
  566.        how the  triangular pointer  moves from field to field.  Make sure you
  567.        use both  the enter and backspace keys enough times to understand what
  568.        they do before you continue.
  569.        
  570.             The program  needs to  know HEIGHT, WEIGHT, SEX, and AGE in order
  571.        to compute  the  percentiles,  z-scores  and  percent  of  median  for
  572.        HEIGHT/AGE, WEIGHT/AGE,  and WEIGHT/HEIGHT.   The  program has several
  573.        ways of getting the four pieces of information it needs.
  574.        
  575.             NAME: name  is an  optional field.   Some  users require it, some
  576.        don't. It has no affect on the computations.
  577.        
  578.             SEX:  the sex for boys can be either M, m, or 1 and the sex for
  579.        girls can be either F, f, or 2
  580.        
  581.             When you  start making your patient files you must be consistent.
  582.        Use only one of the symbols for each sex.
  583.        
  584.             Move the pointer to the sex field. Type 'M' and press return.
  585.             IMPORTANT:   Even the  most careful  user will  make a typo error
  586.        sooner or  later.   With this  program you  can move the cursor to the
  587.        error with  the cursor  arrow keys,  NOT BACKSPACE, and just type over
  588.        the error.   You  cannot move the cursor to the first character in the
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.                                         5
  599.  
  600.  
  601.        string.  If you make a mistake on the very first character you type in
  602.        any field you must:
  603.        
  604.             1. Go  ahead and  enter the  mistake so  you can  get  the  field
  605.        pointer back on the screen.
  606.        
  607.             2. Press  the backspace  key so the pointer will move back to the
  608.        field with  the mistake.   Don't  confuse the  backspace key  with the
  609.        move-left cursor  arrow key.   They  ARE NOT  the same  thing to  this
  610.        program.
  611.        
  612.             3. Retype the data for that field--carefully.
  613.        
  614.             AGE:     the  program  will  accept  ages  in  months,  years  or
  615.        combinations of both or by computing the time difference between VISIT
  616.        DATE and BIRTHDATE.
  617.        
  618.             The proper formats for a birth and visit date are:
  619.        
  620.             mm/dd/yy as in 07/26/86
  621.             yymmdd as in 860726
  622.        
  623.             Both formats  are valid  for July  26, 1986.   The  computer will
  624.        recognize only  these two  formats for dates.  When day is unknown, 00
  625.        or 99 may be used.  The program assumes the 15th.
  626.        
  627.             IMPORTANT: There is a difference between 'age unknown' and age '0
  628.        months.'   Do not  use '0' to indicate an unknown age.  The age, visit
  629.        date and  birthdate fields  must all  be left  blank  to  indicate  an
  630.        unknown age.   The  only exception  is '999.99'  months which  will be
  631.        accepted as age unknown.
  632.        
  633.             When age  is missing  measurements are  assumed to  be  recumbent
  634.        below 85 cms and standing there after.
  635.        
  636.             Move the  pointer to  the birthdate  field and  type  exactly  as
  637.        shown:    06/15/83
  638.        
  639.             Move the  pointer to  the visit  date field  and type  exactly as
  640.        shown:  06/30/86
  641.        
  642.             WEIGHT AND  HEIGHT:   the program will accept any number in these
  643.        fields.   Zero or  a null  field is  used for  unknowns.   The program
  644.        defaults to  the metric  measurements  of  kilograms  and  centimeters
  645.        first.   If you  wish to use pounds/ounces and feet/inches you may but
  646.        it would  serve no  purpose to mix centimeters and inches or kilograms
  647.        and ounces.
  648.        
  649.             For weight, move the pointer to the appropriate fields and type
  650.             36 (pounds)
  651.             2 (ounces)
  652.        
  653.             For height, move the pointer to the appropriate fields and type
  654.        
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                                         6
  665.  
  666.  
  667.             3 (feet)
  668.             2.5 (inches)
  669.        
  670.             Don't forget to press the return key after the last entry.
  671.        
  672.             Double check your screen.  You should have entered:
  673.        
  674.             SEX: M
  675.             BIRTH DATE: 06/15/83
  676.             VISIT DATE: 06/30/86
  677.             WEIGHT: 36 lbs, 2 ounces
  678.             HEIGHT:  3 ft, 2.5 inches
  679.        
  680.             To process  this record,  press [*].  The instruction for this is
  681.        also on the lowest line on the screen.
  682.        
  683.             Notice that the anthropometric indices were performed and quickly
  684.        returned.   What happened  was that the program plotted the patient on
  685.        its stored memory of growth curves and displayed the computed indices.
  686.        
  687.             If the  program put  an [*]asterisk  on  the  screen  instead  of
  688.        processing the  data, it's  because you  didn't press  [ret] after the
  689.        last entry!
  690.        
  691.             Do you think in metric or U.S. standard?
  692.        
  693.             Study the  results on  the screen.  Notice that pounds/ounces and
  694.        feet/inches  aren't   displayed  anymore.  Users  accustomed  to  U.S.
  695.        standards are  probably wondering why the program no longer showed the
  696.        height and  weight measurements  after it  computed the anthropometric
  697.        indices.
  698.             The package was compiled with the display default permanently set
  699.        to metric.  Metrics are much more precise and easier to calculate than
  700.        U.S. standard.   The  growth curve  reference data is in metric.  With
  701.        the default  set as it is, all the data associated with anthropometric
  702.        measures must be entered in metric.
  703.        
  704.             If this  does not  fit your purpose you may change the default to
  705.        U.S. standard  very easily by going back to the main menu (Press [Esc]
  706.        escape).   Whenever you  have the main menu on the screen you have the
  707.        opportunity to  change from  metric to  U.S. or back to metric by just
  708.        pressing 'U' or 'M' on your keyboard.
  709.        
  710.             If you  choose U.S.  then all your anthropometric outputs will be
  711.        in pounds/ounces  and feet/inches.   You  will stay  in U.S.  standard
  712.        until you stop the program or press 'M' while at the main menu.
  713.        
  714.             Measurements must  be input  in the  same mode  you selected  for
  715.        output. In  other words,  don't select  to display  the output in U.S.
  716.        mode if  you are  inputting your  data in  metric.   This  will  cause
  717.        confusion if you choose to edit or re-enter data.
  718.        
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.                                         7
  731.  
  732.  
  733.        1.2 EDITING YOUR ENTRIES
  734.        
  735.             What if  you look  at the results on the screen and discover that
  736.        your patient  data is  incorrect?   You  could  clear  the  screen  by
  737.        pressing [RET]  and start  over, or you could fix only the part of the
  738.        record that is incorrect.
  739.        
  740.             At the bottom of the screen, three options are presented.  [RET],
  741.        as stated  above, will  clear the  screen, [Esc] will take you back to
  742.        the menu,  and any other key will bring back the pointer and allow you
  743.        to re-enter any field.
  744.        
  745.             Assume that  age is  incorrect and that the error was caused by a
  746.        faulty visit  date.   Let's assume that the patient was really visited
  747.        on 05/30/86 instead of 06/30/86.   To correct that error:
  748.        
  749.             1. Press  any key (except return or backspace) to get the pointer
  750.        back on the screen.
  751.             2. Press  [RET] or  the backspace  key to move the pointer to the
  752.        visit date field.
  753.             3. Type and enter the new date (05/30/86).
  754.             4. Press [*] to process the data for the anthropometric indices.
  755.        
  756.             You will  notice a  change in  the computed age. Also, there have
  757.        been some  changes in  the indices for weight/age and height/age.  You
  758.        could, if  you desired,  use the  entry program  as a   anthropometric
  759.        calculator by just changing the data in any field an indefinite number
  760.        of times.
  761.             To invalidate  fields (remove  any data) blank out the field with
  762.        spaces.
  763.        
  764.        1.3 EDIT FLAGS
  765.        
  766.             Sooner or  later, if  you enter enough data, you'll see a message
  767.        called an  Edit Flag.  The words "EDIT FLAG" will appear flashing near
  768.        the display of computed anthropometric indices.
  769.        
  770.             Assume that you accidentally entered 32.5 feet for height instead
  771.        of 3  feet and  2.5 inches.  There wouldn't be any curve data for such
  772.        an extreme height so there would be and Edit Flag warning and unknowns
  773.        as indices for height/age and weight/height.
  774.        
  775.             The Edit  Flag warning flashes every time the patient data cannot
  776.        be plotted on any of its curves.  Common causes of Edit Flags are:
  777.        
  778.             1. No height or weight found in the record
  779.             2. No sex indicated
  780.   There may be no errors in thn the birth or visit fields
  781.             4. Computed ages over 18 years old
  782.        
  783.        
  784.             The computed  indices will  be percentiles of 999.99, z-scores of
  785.        9.99 and medians of 999.99.  These are tokens for unknowns.
  786.        
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.                                         8
  797.  
  798.  
  799.             Sometimes actual  patient data  will cause an edit flag to occur.
  800.        There may be no errors in the data but still the Edit Flag appears and
  801.        there are real anthropometric indices on the screen.
  802.        
  803.             You may still get an edit flag message if:
  804.        
  805.             1. Patient's  weight and  height are at some extreme that doesn't
  806.        fit any of the reference curves.
  807.             2. The  z-scores for weight/age and height/age are greater than 6
  808.        or less than -6.
  809.             3. The z-score weight/height is less than -4 or greater than 6.
  810.        
  811.             4. Boys are taller than 145 cms; girls are taller than 137 cms.
  812.        
  813.             5. Boys  are older  than 138  months; girls  are older  than  120
  814.        months
  815.        
  816.        1.4 MAKING PATIENT RECORD FILES
  817.        
  818.             In the  previous section  of this booklet, you learned to use the
  819.        entry program  as an  anthropometric  calculator  without  saving  the
  820.        results.   You learned  how to  correct an  individual field  and what
  821.        causes an Edit Flag.
  822.        
  823.             In this section you will learn how to make a file to hold patient
  824.        data and  how to  have even  more fields  than just name, sex, height,
  825.        weight, and age.
  826.             First you  must go back to the main menu.  Press [Esc] to get the
  827.        main menu, if you haven't already got it.
  828.        
  829.             Press selection [3].
  830.        
  831.             A small window appears.  In the window you are prompted to create
  832.        a name  for your  file.  Acceptable names are any combination of up to
  833.        eight alphabetic  or numeric characters (no spaces).  You must include
  834.        the disk  drive upon  which you intend to create the file and you must
  835.        not make  up extensions  for your  file names.   An example of a legal
  836.        name is:
  837.        
  838.             C:MYFILES.   There is 'C' as the disk drive, followed by a colon,
  839.        and the file name.  That is the only correct format.
  840.        
  841.             PATIENTRECS is illegal because the name is too long.
  842.             C:NEWFILE.MDJ is illegal because there is an extension
  843.        
  844.             At this, time mount disk drive A and enter the name A:PRACTICE.
  845.        
  846.        1.5 CREATING EXTRA CLASSIFICATION VARIABLES
  847.        
  848.             A large  window appears  after you  have entered  the name of the
  849.        file.   In this  window you  may create  the names  of up  to  24  new
  850.        classification variables.  If you do not want extra variables then you
  851.        may press [*].
  852.        
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.                                         9
  863.  
  864.  
  865.             To familiarize you with the rules for extra variables, we'll make
  866.        a few  extra variables.   Let's assume that we need to collect data on
  867.        race or  nationality, residence  and mother's  age when  the child was
  868.        born.    That  would be  three extra classification variables.  In the
  869.        program they are called user-selected variables.
  870.        
  871.             All you  have to do is type a short name for the field (no longer
  872.        than 7  characters).   Notice we're using the pointer again.  Pressing
  873.        return or  backspace will  move the pointer to 24 stops in the window.
  874.        This is to allow you to go back and change a name.  Type and enter;
  875.        
  876.             ETHNIC
  877.             REGION
  878.             #MAT AGE (for maternal age)
  879.        
  880.             Notice that MAT AGE has a # sign before it. The # sign means that
  881.        any information  going into this field will be numeric.  You could put
  882.        numbers in  any of the other fields, too, but the computer would treat
  883.        them as words, instead of numeric values.
  884.             A $  sign is  the opposite  of a # sign.  A $ sign means that the
  885.        field is an alphanumeric character field.  We didn't use $ in front of
  886.        ETHNIC or  REGION because when a field is created, the program assumes
  887.        that it's an alphanumeric character field.  You don't have to type the
  888.        $ sign unless you are changing a numeric field to a character field.
  889.        
  890.             If you  make a  mistake, remember  from your  practice with  data
  891.        entry how  to correct  it; enter the mistake and move the pointer back
  892.        to the field with the backspace key.
  893.        
  894.             When you  have created  all three  labels press  [*] to  register
  895.        them.   The disk  drive will  activate for  a moment and then the menu
  896.        will return.
  897.        
  898.             You have  now created a file called PRACTICE.  If you look at the
  899.        disk's directory you will see PRACTICE.ETB.  That is the file you have
  900.        created and  there are three extra variable names stored with the file
  901.        name.
  902.        
  903.             Right now  the file is empty so we are going to put a few records
  904.        in it.
  905.             Press selection [1].
  906.              By  now you  are familiar  with this screen.  One of the choices
  907.        shown   in the line menu at the bottom of the screen is [/] ACTIVATE A
  908.        FILE.
  909.             Press [/]   (that's  the slash  on the same key with the question
  910.        mark).
  911.        
  912.             A prompt  appears in  the top  left corner  of the  screen.   The
  913.        program wants to know what file you are opening.  You must answer this
  914.        prompt with  the DISK  DRIVE DESIGNATION and the FILE NAME.  Since you
  915.        want the practice file you must type and enter:
  916.        
  917.             A:PRACTICE   (Later, when  you are making your own files, you may
  918.        replace the 'A' with whatever disk drive you wish to use).
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.                                         10
  929.  
  930.  
  931.        
  932.             Notice that  your extra  classification fields have appeared near
  933.        the bottom.
  934.        
  935.             Before we  enter data  in your new file, let's assume that you've
  936.        decided you  really need  more than just these three fields.  It's not
  937.        too late to add more.
  938.        
  939.             1. Press [Esc] to get back to the menu.
  940.             2. Choose selection [3] as if you were creating a new file.
  941.             3. Type and enter A:PRACTICE.
  942.        
  943.             The program  detects that there is already a file called PRACTICE
  944.        so it will present the current list of extra variables.
  945.        
  946.             At this  point you may add more variables, over-strike and change
  947.        the name  of a  current variable,  or delete  a variable  by using the
  948.        space bar.
  949.        
  950.             For this  exercise, let's  add POLIO and MEASLES (for vaccination
  951.        recording) as  extra fields.   Remember,  press [ret]  after the  last
  952.        entry and press [*].
  953.        
  954.             Rules for  creating variables  are simple.   You  don't  need  to
  955.        memorize them  right away, but you will need to know them when you are
  956.        through practicing and you start making files of your own.
  957.        
  958.             1.   Extra classification fields are five columns long.  (This is
  959.        permanently fixed.)  You may have 24 extra classification fields.
  960.        
  961.             2. A  field label  can be seven characters long.  Anything beyond
  962.        seven will be truncated.  The # and $ signs are not counted as part of
  963.        the length.
  964.        
  965.             3. A  # sign  at the  beginning of  a field  label means that the
  966.        field will contain numeric information.
  967.        
  968.             4. A  $ sign  at the  beginning of a field cancels a # sign.  You
  969.        would use  a $  sign to switch a numeric field back to an alphanumeric
  970.        character field.
  971.        
  972.        1.6 ENTERING RECORDS INTO PATIENT FILES
  973.        
  974.             Go back to the menu if it isn't already there.
  975.             Decide now whether you want metric or U.S. (Press U for U.S.      
  976.        or M for metric.)
  977.             Press selection [1].
  978.        
  979.             The data entry screen appears.
  980.             To get  records into  a file you must have an opened file. One of
  981.        the choices at the bottom of the screen is [/] Activate a file.
  982.        
  983.             Press [/].
  984.        
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.                                         11
  995.  
  996.  
  997.             In the upper left corner, the prompt FILE appears.
  998.        
  999.             Mount a  new formatted  diskette in  A drive  then type and enter
  1000.        A:PRACTICE (B or C drive will serve just as well if you prefer).
  1001.        
  1002.             The extra variables now appear near the bottom of the screen.
  1003.        
  1004.             Making patient  records is  a three-step process:  TYPE, PROCESS,
  1005.        SAVE.
  1006.             TYPE in  a name,  sex, birthdate, visit date, weight, and height.
  1007.        Follow the  same pattern you used in interactive computation.  Make up
  1008.        information for the extra variables, too.
  1009.        
  1010.             PROCESS by  pressing [*].   Check for Edit Flag (accompanied by a
  1011.        beep). Read anthro indices.
  1012.        
  1013.             SAVE by  pressing the  return key to write the information to the
  1014.        practice file.  Each record takes up 221 bytes of disk space.
  1015.        
  1016.             Perform these  three steps for four example patients of your own.
  1017.        Creating this file will get you accustomed to entering records.
  1018.        
  1019.             You can  see that,  while this method of moving pointer type data
  1020.        entry takes  a little  getting  used  to,  it  can  be  mastered  with
  1021.        practice.  Using the [*] for processing may seem a bit odd, but it was
  1022.        selected because  there's a  [*] key in easy reach of the right little
  1023.        finger just  above and  to the right of the space bar on most IBM-type
  1024.        keyboards (except the IBM AT).
  1025.        
  1026.        1.7 SETTING TABS
  1027.        
  1028.             You probably don't need to stop at every field on the screen.  If
  1029.        you are  filling out  birth and  visit dates, you surely don't need to
  1030.        stop at  age in  month and  years.   Likewise, if you're in the metric
  1031.        mode, you don't need to stop at pounds/ounces and feet/inches.
  1032.        
  1033.             The pointer can be programmed to stop only at the fields you want
  1034.        to fill  out.   Let's assume  you want to stop only at NAME/I.D., SEX,
  1035.        BIRTH, VISIT,  LBS, OZS,  FT and  IN.  It would speed up data entry to
  1036.        have the pointer stop only at those fields.  To set tabs:
  1037.        
  1038.             1. Move  the pointer to the first field you wish to tab.  (By the
  1039.        way, fields can be tabbed in any order!)
  1040.        
  1041.             2. Press TAB (the double arrows next to the Q key).  When a field
  1042.        is tabbed,  there is  a beep.   You  cannot tab the user-created extra
  1043.        classification variables.  The logic assumed here is that you wouldn't
  1044.        have created the fields if you didn't plan to fill them out.
  1045.        
  1046.             3. When  you have  tabbed the  chosen  fields,  press  the  caret
  1047.        character [^] (the symbol above the number 6). [ ] activates the tabs.
  1048.        This key  also unsets all the tabs.  If you unset the tabs you'll have
  1049.        to reset all of them.
  1050.        
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.                                         12
  1061.  
  1062.  
  1063.             Now when  you move  the pointer  from field to field it will only
  1064.        stop at the fields you've tabbed.
  1065.        
  1066.             Try entering  four more  records now  that you have tabs.  You'll
  1067.        see how much more efficient using tabs can be.
  1068.        
  1069.        1.8 SEARCHING AND VIEWING RECORDS
  1070.        
  1071.             After you've  entered several records or have had someone else do
  1072.        it for  you, it's  not easy to grasp the prevailing characteristics of
  1073.        these patients  as a group.  This function is probably the most useful
  1074.        feature for just getting acquainted with your records.
  1075.        
  1076.             Get back to the main menu and press [2].
  1077.        
  1078.             The first  thing you  must do  is tell the computer what file you
  1079.        wish to  search.   As always you do this by typing and entering a file
  1080.        name. DON'T FORGET TO INDICATE DISK DRIVE BEFORE THE FILE NAME.
  1081.        
  1082.             We will review your training file PRACTICE.
  1083.        
  1084.             The data  entry screen  returns but  this time it has a different
  1085.        function.  It's used to search for specific kinds of records.  You may
  1086.        command the program to:
  1087.        
  1088.             Find all records that were edit-flagged  (press [@]).
  1089.             Find all records that were not edit-flagged  (press [#]).
  1090.             Get all records flagged or not (press [*]).
  1091.             Inclusive or exclusive search for very field-specific             
  1092.             records (input sought after info in field it is                   
  1093.        expected to be found and press [*]).
  1094.        
  1095.             Press [*]
  1096.        
  1097.             You are  immediately told you have eight records (unless you made
  1098.        more or less than instructed).
  1099.        
  1100.             You have options for presenting the results of the search:
  1101.        
  1102.             [1] and  [2] allow  you to  make a  listing of the records on the
  1103.        screen or  the printer.  This is the way to dump the records but in an
  1104.        orderly formatted manner with only the fields you choose to see.
  1105.        
  1106.             Press [2] if you have a printer on line or [1] if you don't.
  1107.             
  1108.             If you  are going  to use your printer, set the paper so that the
  1109.        print head starts on the first line of the page.
  1110.        
  1111.             You are presented with a list of the fields in your records.  You
  1112.        select the  field you  wish to see by the corresponding number, typing
  1113.        and entering each number one at a time.
  1114.             
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.                                         13
  1127.  
  1128.  
  1129.             Select    NAME/ID
  1130.                       AGE
  1131.                       SEX
  1132.                       ETHNIC
  1133.                       REGION
  1134.                       W/H percentile
  1135.                       H/A percentile
  1136.        
  1137.             Press return alone or type and enter '0' to begin listing.
  1138.        
  1139.             When the  listing is  on the  screen, the  screen displays twenty
  1140.        records at  a time.   When  the listing is on the printer, the printer
  1141.        writes fifty  records per page.  Each page will have a header and page
  1142.        number.
  1143.        
  1144.             The search results menu returns after the printer has finished.
  1145.        
  1146.             Selection number  [3] on  the  menu  allows  you  to  look  at  a
  1147.        patient's total record.  Press [3].
  1148.        
  1149.             The data entry screen is back again but this time it displays the
  1150.        first record and the anthropometric indices.  To examine other records
  1151.        in the file, you may press return to see the next record, backspace to
  1152.        see the  previous record, or type and enter the record number you wish
  1153.        to see.
  1154.        
  1155.             A counter  in the  upper right  corner shows you which record you
  1156.        are viewing.   The  record numbers  apply to the index of records that
  1157.        fit the search, not to the record's physical location on the disk.  In
  1158.        this case,  they are  the same  only because  all the  records fit the
  1159.        search criteria.  Your printed listing of selected fields serves as an
  1160.        index.   The consecutive  numbers in the leftmost column correspond to
  1161.        the record selected for viewing on the screen.
  1162.        
  1163.        1.9 EDITING RECORDS
  1164.        
  1165.             You can  perform editing  functions on a record while you have it
  1166.        up on  the data entry screen.  Along the bottom of the screen you will
  1167.        see a small menu for selection of functions.
  1168.        
  1169.             Press [E] for edit.
  1170.        
  1171.             You will  see that  the pointer  has returned.   You can move the
  1172.        pointer to any field and change the data.
  1173.        
  1174.             Move the  pointer to  the SEX  field and  change the  data to the
  1175.        opposite sex.
  1176.        
  1177.             Keep your eye on the anthropometric indices and press [*].
  1178.        
  1179.             Notice that  the anthropometric  indices changed  slightly.   Not
  1180.        only did  they change  on the screen but the change in sex and indices
  1181.        were also written to the file.  You have just edited a record.
  1182.        
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.                                         14
  1193.  
  1194.  
  1195.             As long  as the  pointer is  still on  the screen, you are in the
  1196.        edit mode and able to change any item in a patient's record.  Pressing
  1197.        [*] will  process the  record for  any changes  in the  anthropometric
  1198.        indices and  write it  to the  file.   If you wish, you may change the
  1199.        entry in  the sex  field again  and watch  the anthropometric  indices
  1200.        change again when you press [*].
  1201.        
  1202.             Just like  in data  entry, the  edit routine will detect probable
  1203.        errors and flash EDIT FLAG.  If you get an edit flag, remember it will
  1204.        be written on the record that way until you change it.
  1205.        
  1206.        1.10 DELETING RECORDS FROM FILE
  1207.        
  1208.             [D] is for delete.
  1209.        
  1210.             It works very simply.  If you put a record on the screen and push
  1211.        [D], you  erase the  record.  The record doesn't really disappear from
  1212.        the disk.   A special byte of information is written to the record and
  1213.        you won't  have access  to the  record anymore.   It's still out there
  1214.        taking up space. If you had a file of 1000 records and you deleted the
  1215.        second one,  it would  take too  long to pull all the records back one
  1216.        address to cover the gap.
  1217.        
  1218.             There are other procedures you can use to 'tighten up' your files
  1219.        after a  lot of  deleting. Merging  or sub-setting files automatically
  1220.        cause records  coded as 'deletable' not to be copied.  If you do a lot
  1221.        of deleting,  be sure  to  read  the  section  1.12  Transferring  and
  1222.        Subsetting Files.
  1223.        
  1224.        1.11 MAKING FIELD-SPECIFIC INCLUSIVE AND EXCLUSIVE SEARCHES
  1225.        
  1226.             Besides being able to separate edit-flagged from non-edit-flagged
  1227.        records, you  can search  and separate  records based  on criteria  as
  1228.        specific as 'all children from village XYZ who were vaccinated against
  1229.        measles and had w/h percentiles over 70 and were under 60 months old'.
  1230.        
  1231.             To perform  such searches  you must escape to the results display
  1232.        selection  menu.     Press   [Esc]   if   you   are   still   in   the
  1233.        edit/review/delete mode.  We could press [5] for New search but we are
  1234.        going to  use a  larger file so we have something substantial on which
  1235.        to experiment.
  1236.             Press [Esc] until you get back to the main menu.
  1237.        
  1238.             Press [2] for Edit and Search
  1239.        
  1240.             We will  use a practice file called SAMPLE.  It was supplied with
  1241.        your supplemental  files diskette. Fetch it from the diskette.  By now
  1242.        you should  know that you always specify the disk drive along with the
  1243.        file name.
  1244.        
  1245.             We are  going to find all males, between 12 and 36 months who are
  1246.        between the  40th and  80th percentile  for height  and age, and whose
  1247.        birthweights were between 1800 and 6700 grams at birth.
  1248.        
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.                                         15
  1259.  
  1260.  
  1261.             1. Move the pointer to the sex field and input "M"
  1262.             2. Move the pointer to the months field and input "12"
  1263.        
  1264.             After you  pressed the  return key,  you noticed that the pointer
  1265.        stayed at  the months  field.   Because months  is a numeric field the
  1266.        program expects  a lower  and upper range.  12 was the lower range. 36
  1267.        will be the upper range and you will enter it in the months field.
  1268.        
  1269.             3. Input 36 as the upper range in the months field.
  1270.             4. Move  the pointer  to the   h/a percentile area in the indices
  1271.        display bars.   Input  40 as  the lower range, press return, and enter
  1272.        80.99 as the upper range. Press return to get the pointer back.
  1273.        
  1274.             5.  Move   the  pointer   to  the  BIRTHWT  field  in  the  extra
  1275.        classification fields  area.   Notice that  the pointer changed to a #
  1276.        sign.   This is  a reminder  that the  information in  this  field  is
  1277.        mathematic and  will require  you to  input a  lower and upper numeric
  1278.        range.
  1279.        
  1280.             Type and enter 1800.  That is the lower range.
  1281.        
  1282.             The #  sign will  stay fixed at the BIRTHWT field. Type and enter
  1283.        6700.  That is the upper range.
  1284.        
  1285.             6. Press [*].
  1286.        
  1287.             The prompt [I] INCL [E] EXCL appears near the top right corner of
  1288.        the screen.   This  prompt asks  if your  search  will  be  INCLUSIVE,
  1289.        meaning children  within or  equal to  the  search  specifications  or
  1290.        EXCLUSIVE, meaning  children outside  of or  not equal  to the  search
  1291.        specifications.
  1292.        
  1293.             For this  search to  find the  patients we've describe the search
  1294.        will have to be inclusive.  Type and enter the letter [I].
  1295.        
  1296.             The disk  drive is  activated as the program searches each record
  1297.        to see  if it  fits the search criteria.  In the upper right corner of
  1298.        the screen you will see a pair of numbers. The number ascending on the
  1299.        left tells  how many  records were  searched.  The number ascending on
  1300.        the right is the number of records found that fit the search criteria.
  1301.        
  1302.             When the  program has  searched all  the records you will be told
  1303.        how many  records fit the search criteria and a menu to select how you
  1304.        want to view the results of the search.
  1305.        
  1306.             If you  choose to  look at  the records individually or list them
  1307.        out on  the printer  or the  screen, you will see that all the records
  1308.        found are all males between 12 and 36 months old, with h/a percentiles
  1309.        between 70 and 80.99, and weight between 1800 and 6700 grams at birth.
  1310.        
  1311.             If the  search had  been [E]  Exclusive, the  computer would have
  1312.        found children  who did  not fit  within the  search described  above.
  1313.        Exclusive searching  allows the  users search  two sides  of  a  curve
  1314.        simultaneously.
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.                                         16
  1325.  
  1326.  
  1327.        
  1328.        1.12 TRANSFERRING AND SUB-SETTING FILES
  1329.        
  1330.             You may  put 5000*  patients into  a single  file. You cannot fit
  1331.        5000 records  on a diskette (unless using a 1.2 mb high-density drive)
  1332.        but you  could keep  that many  records in  a single file if you had a
  1333.        hard disk.
  1334.        
  1335.             Rarely are  users interested  in all  their records  at once. The
  1336.        typical user,  for instance,  may only  want  to  concentrate  on  the
  1337.        abnormal patients or patients fitting a narrow classification.
  1338.        
  1339.             Using option  [4] Transfer  Subset to  a New File, you can make a
  1340.        new file  of the  records you've  found during  a search.  We recently
  1341.        identified a  number of 1, 2 and 3-year-old males between the 70th and
  1342.        80th percentile  for height-for-age  who weighed between 1800 and 6700
  1343.        grams at birth.  We could copy them to a new file very easily.
  1344.        
  1345.             On the Search Results Menu press [4].
  1346.        
  1347.             You are  prompted to  make up  a name.  Let's call  this group of
  1348.        patients A:GROUP1.   Indicate a disk drive and type A:GROUP1.
  1349.        
  1350.             After you  press the return key, the program will write a copy of
  1351.        the records that fit this search to the file GROUP1.
  1352.        
  1353.             This will  be a  fully  independent  patient  file  that  can  be
  1354.        searched, edited and added to just like the file it came from.
  1355.        
  1356.             Note: You  could use  this function  to copy  an entire  file for
  1357.        back-up.   To do  this you would fetch all records instead of making a
  1358.        field-specific search  and then  use the transfer function to copy all
  1359.        of the records into another file.
  1360.        
  1361.             In the section on DELETING RECORDS, it was mentioned that none of
  1362.        the deleted  records were  ever really erased--just specially coded so
  1363.        you couldn't access them.
  1364.        
  1365.        
  1366.        *The program  was designed  to manage 5000 records at a time. Attempts
  1367.        to save  more than  5000 records  per  file  may  bring  unpredictable
  1368.        results.
  1369.             They are  still taking  up space  on the file.  If you've deleted
  1370.        more than  a few  records, you  can use  this function to 'tighten-up'
  1371.        your file.   The  records coded  as deleted will not be transferred to
  1372.        the new file.
  1373.        
  1374.        1.13 SAMPLE WEIGHTS
  1375.        
  1376.             In more  complex tabulations  some users  find  it  necessary  to
  1377.        'weight' their  data. In  some instances  the user  determines that  a
  1378.        specific  group   of  respondents  to  a  survey  are  under-or  over-
  1379.        represented.
  1380.        
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.                                         17
  1391.  
  1392.  
  1393.             By using  sample weights in the ENTRY program you cause a special
  1394.        field to  be written  on each record.  In that field you may place any
  1395.        number that  will fit  in five  columns or  less (e.g.  .0025,  1.276,
  1396.        45.1).   When the  file is  cross-tabulated or  tallied in some way by
  1397.        another program,  each patient will represent one times whatever value
  1398.        is in the sample weight field.
  1399.        
  1400.             To demonstrate,  we will  weight the records in the practice file
  1401.        you made earlier.
  1402.        
  1403.             Make sure you are at the main menu, then press [4].
  1404.        
  1405.             When you receive the prompt for a file name, enter the disk drive
  1406.        designator and the name of the file.
  1407.        
  1408.             The first  thing you  are told  is that your practice file has no
  1409.        provision for  weighting data.  This is nothing to be concerned about.
  1410.        This means  there is no sample weight field in the records at present,
  1411.        but you can have one.
  1412.        
  1413.             Press [2] to create the sample weight field.
  1414.        
  1415.             Immediately you  have your  field. There is another prompt in the
  1416.        window.   From here  you could [1] go back to the menu or [2] continue
  1417.        which means  now that  you've established  a sample  weight field  you
  1418.        could apply the weights.
  1419.        
  1420.             There are two ways to weight your data.  You could go back to the
  1421.        menu, use  the edit  function and individually weight every record one
  1422.        at a time.  Now that the field exists as part of your record, it would
  1423.        be very  easy to  edit in the numbers just as you would edit any other
  1424.        field.  This would be a very slow process.
  1425.        
  1426.             The second and most efficient way is to "describe" to the program
  1427.        which records require weighting and what that weight should be.
  1428.        
  1429.             Press [2] to continue.
  1430.        
  1431.             You are given three choices:
  1432.        
  1433.             1 apply one weight to all records.
  1434.             2 apply weight to selected records
  1435.             3 change old weight to new weight
  1436.        
  1437.             With selection  [1] you can give all the records the same weight.
  1438.        To demonstrate  this function  we will  apply the  weight of  1 to all
  1439.        records.
  1440.        
  1441.             Press [1].
  1442.        
  1443.             You are  asked to  enter what  weight is  to be  applied  to  all
  1444.        records.
  1445.        
  1446.             Type and enter '1'.
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.                                         18
  1457.  
  1458.  
  1459.        
  1460.             The disk  drive activates,  and you  may actually  hear the  head
  1461.        writing the  number 1  to the sample weight field on every record.  We
  1462.        will look  at the  results as soon as the computer finishes writing on
  1463.        every record.  The menu will return after the process is complete.
  1464.        
  1465.             When the  menu is  back on  the screen use the edit function [2],
  1466.        give the  name of  the practice  file, call  in all  your records  (by
  1467.        pressing [*]), and select [3] to view every record individually.
  1468.        
  1469.             Look in  the user-selected  classification  variables.  The  last
  1470.        field is  '@SW'.   @SW is  a very  specific label.   The  computer  is
  1471.        programmed to  recognize only  that label  as a  sample weight  field.
  1472.        Notice that every record has a '1' in that field.
  1473.        
  1474.             Go back to the menu.
  1475.        
  1476.             Select [4].  We will  demonstrate the  third function  in  sample
  1477.        weighting. When  you get  the prompt  for a  file name, reply with the
  1478.        practice file you just finished weighting.
  1479.        
  1480.             Select [3].
  1481.        
  1482.             With this  function you  must search  for the kind of records you
  1483.        plan to weight.  To specify the records, you use the same methods used
  1484.        to perform  a field-specific search.  For a simple example, assume you
  1485.        want to apply the weight of .75 to all males.
  1486.        
  1487.             1. Move the pointer to the SEX field. Type and enter 'M'.
  1488.        
  1489.             2. Press [*].
  1490.        
  1491.             Just as  in field-specific  searching previously  demonstrated in
  1492.        this chapter,  the search  for males or any other characteristic could
  1493.        be inclusive  or exclusive.   You  have to specify inclusive by typing
  1494.        and entering [I].
  1495.        
  1496.             After finding all the males in the file, you are prompted to give
  1497.        the weight to be applied.
  1498.        
  1499.             3. Type and enter .75
  1500.        
  1501.             The program  proceeds and writes '.75' in the sample weight field
  1502.        of the records of every male in the file.
  1503.        
  1504.             You can  confirm this  by using  the edit  function to  view each
  1505.        record individually.
  1506.        
  1507.             The second  feature in the sample weight function is changing one
  1508.        sample weight to another.
  1509.        
  1510.             First, go  back to  the main menu and select [4] again.  Reply to
  1511.        the prompt with the practice file name and select feature number [2].
  1512.        
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.                                         19
  1523.  
  1524.  
  1525.             The first prompt asks for the old weight--that is the number it's
  1526.        suppose to find and change.  For this example type and input '1'.
  1527.        
  1528.             The next  prompt asks  for the  new weight.  In other  words, the
  1529.        computer wants  to know  what it  should change  '1' into.  Reply with
  1530.        '1.333'.
  1531.        
  1532.             After you  have answered  that prompt,  the program will tell the
  1533.        computer to search for and change all '1's to '1.333'.
  1534.        
  1535.             Sample weighting  has no influence on the computed anthropometric
  1536.        indices.   The only  time the  sample weight influences any process in
  1537.        the package  is in  cross-tabulation.   The TAB  program  will  detect
  1538.        weighted data.  During tabulation, each record that fits the cross-tab
  1539.        will not be counted as one, but instead it will count for the value in
  1540.        the sample weight field.
  1541.        
  1542.             There are a few considerations you'll want to remember when using
  1543.        sample weights.
  1544.        
  1545.             1. Sample  weights are an extra variable counted as one of the 24
  1546.        allowed user-selected  classification variables.  You  cannot  have  a
  1547.        sample weight field if you've already created 24 extra variables.
  1548.        
  1549.             2. You  can create  a sample  weight at  the same time you create
  1550.        your other  extra fields  by just using the label '@SW'. Remember that
  1551.        the 'S' and 'W' must be capital letters.
  1552.        
  1553.             3. Once you've created a sample weight field you are obligated to
  1554.        give every  record a  weighted  value--even  if  that  value  is  '1'.
  1555.        Without a value in the sample weight field, the record counts for zero
  1556.        during cross-tabulation.   It is recommended that all weighted records
  1557.        be assigned a value of '1' before weighting any specific groups.
  1558.        
  1559.        1.14 MERGING FILES
  1560.        
  1561.             Merging files  in the  entry program  is the  process  of  taking
  1562.        several like  files and  tying them  together.   If several people are
  1563.        working on  the same project from different work stations, it might be
  1564.        useful to merge the separate files before cross-tabulating them.
  1565.        
  1566.              You  may never need to merge a file but the function is there if
  1567.        you do.
  1568.        
  1569.             To begin merging files, press [5] on the main menu.
  1570.        
  1571.             A window  will appear.   In  this window  you must  list the disk
  1572.        drives and  file names  of the  files you  intend to merge.  After the
  1573.        last file name has been entered, press [*] to go to the next step.
  1574.        
  1575.             The merged  files will  be kept under a different name.  The next
  1576.        prompt asks  what you  wish the  name of  the merged files to be.  YOU
  1577.        CANNOT USE  ONE OF  THE NAMES OF THE FILES YOU ARE MERGING FOR THE NEW
  1578.        NAME.
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.                                         20
  1589.  
  1590.  
  1591.        
  1592.             As the  files are  merged, you  see two numbers appear beside the
  1593.        file names  in the  window.   The left  number is how many records are
  1594.        coming from  the file  being merged.  The right number is total number
  1595.        of records written to the new file.
  1596.        
  1597.             If any  of the  files you've listed are incorrectly named or non-
  1598.        existent, the process will stop and prompt you to make a correction.
  1599.        
  1600.             If your merger causes more than 5000 records to be written to the
  1601.        new file,  an overflow  file called  TEMP.ETB  will  be  automatically
  1602.        created.   TEMP.ETB will contain the excess.  It is important that you
  1603.        change TEMP.ETB's  name since  it will  be over-written next time this
  1604.        situation occurs.
  1605.        
  1606.             If you  would like to test this function, make a few files with a
  1607.        few records in them and merge them.
  1608.        
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.                                         21
  1655.  
  1656.  
  1657.        
  1658.        CHAPTER II  USING THE TAB PROGRAM
  1659.        
  1660.             What can this Tabulation program do?
  1661.        
  1662.             Cross-tabulations are  the documents  that support and illustrate
  1663.        the health  professional's conclusions.  BATCH and ENTRY are basically
  1664.        the tools  for collecting  the research data.  TAB is the program that
  1665.        presents the findings of that research.
  1666.        
  1667.             The  Anthropometric   Statistical  Package  will  make  a  three-
  1668.        dimensional cross-tabulation  using any three variables in an ETB file
  1669.        created with BATCH or ENTRY.
  1670.        
  1671.             Because of  the considerable  amount of time involved in making a
  1672.        cross-tab, Version III has been enhanced so that the user may:
  1673.        
  1674.             1. save  the results of a cross-tab and present it or print it as
  1675.        many times as desired.
  1676.        
  1677.             2. create a library of frequently used tabulation intervals.
  1678.        
  1679.             3. create  a cross-tab, replace any variable, change any interval
  1680.        and rerun as new cross-tab.
  1681.        
  1682.             4. batch-load up to ten ETB files for one cross-tab.
  1683.        
  1684.             Completely new  in Version  III is  the capability to present the
  1685.        results of  a cross-tab  as a  bar graph  or histogram  as it is often
  1686.        called.   The histogram  is a  feature recommended only for users with
  1687.        color monitors  or monochrome  monitors compatible  with color  option
  1688.        cards.
  1689.        
  1690.             Every effort has been made to make Version III of the Tab program
  1691.        the most  flexible and user-friendly program in the package.  In order
  1692.        to get  the most  out of  the program  you must  carefully follow  the
  1693.        instructions provided in this chapter.
  1694.        
  1695.        
  1696.        2.1 PLANNING A CROSS-TABULATION
  1697.        
  1698.             To start  the program,  boot up  the computer, insert the Program
  1699.        Diskette (if  you're not  using a  hard disk  copy) and enter the word
  1700.        TAB.
  1701.        
  1702.             The principle  product of  the TAB program is a three-dimensional
  1703.        cross-tabulation.     It's  called   three-dimensional   because   the
  1704.        tabulation has width in the form of columns across the page, height in
  1705.        the form of rows going down the page, and depth in the number of pages
  1706.        to the tabulation.
  1707.        
  1708.             You cannot  pull a  cross-tab out  of nowhere.  With 16 permanent
  1709.        variables and  up to  24 extra  classification  variables,  there  are
  1710.        hundreds of possible combinations for a cross-tabulation.
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.                                         22
  1721.  
  1722.  
  1723.             It may  be helpful  to rough draft your cross-tabulation on plain
  1724.        paper before you start choosing variables and defining intervals.
  1725.        
  1726.             Each dimension  represents one of three variables you choose from
  1727.        a patient  file.   Each variable  is then  broken into intervals.  The
  1728.        second element  in a  cross-tabulation are  the intervals of the three
  1729.        variables.
  1730.        
  1731.             The maximum  number of  intervals depends  on what  dimension the
  1732.        variable occupies.  The allowed number of intervals for each dimension
  1733.        are:
  1734.        
  1735.             1. COLUMN   (maximum 8 intervals)
  1736.             2. ROW      (maximum 6 intervals)
  1737.             3. PAGE     (maximum 14 intervals)
  1738.        
  1739.             There are a few steps to making a cross-tabulation.  You must
  1740.        first:
  1741.        
  1742.             STEP 1.    Prepare  a  "template"  of  the  variables  and  their
  1743.        intervals.
  1744.        
  1745.             STEP 2.   Choose what file(s) will be cross-tabulated against the
  1746.        template.
  1747.        
  1748.             STEP 3.  Perform the tabulation and save the results.
  1749.        
  1750.             STEP 4.  Display, print or graph the results.
  1751.        
  1752.             Provided with  the supplemental  files diskette  is an  ETB  file
  1753.        called SAMPLE.  This will be our practice file.
  1754.        
  1755.        2.2 THE INTERVAL TEMPLATE
  1756.        
  1757.             You must  start  with  STEP  1,  choosing  variables  and  making
  1758.        intervals.  Variables don't come out of thin air.  Any variables in an
  1759.        ETB patient  file can  be used in cross-tabulation but the program has
  1760.        no way  of detecting  what those  variables could  be if  it has never
  1761.        "seen" the file.
  1762.        
  1763.             While the  menu is present (it's present whenever the word SELECT
  1764.        is blinking), press [5] Create or Edit Tab Intervals.
  1765.        
  1766.             You are  prompted to  give the name of an ETB file so the program
  1767.        can "look"  at the available variables.  Reply with  A:SAMPLE  (or B:,
  1768.        or C:  depending  where  you  put  the  package's  supplemental  files
  1769.        diskette).
  1770.        
  1771.             Notice the  windows descending  across the  screen.  You are told
  1772.        how many  variables are  available to you and that there is one window
  1773.        each for COLUMN, ROW, and PAGE.
  1774.        
  1775.             First, let's  look at the variables.  You can do this by pressing
  1776.        the spacebar  or the  backspace key.   DO  NOT PRESS ANYTHING ELSE BUT
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.                                         23
  1787.  
  1788.  
  1789.        THESE TWO KEYS.  You will see all the variables in the file appear one
  1790.        at a  time.  Keep using the spacebar and backspace keys until you have
  1791.        seen all the variables.
  1792.        
  1793.             We are going to choose the first variable.  Press the spacebar or
  1794.        the backspace key until you reach the variable AGE.
  1795.        
  1796.             Press the  return key.   You  have  chosen  AGE  as  your  Column
  1797.        variable. The pointer has moved to the Row window.
  1798.        
  1799.             Just as  you did  in the Column window, find the variable W/H%ile
  1800.        and press the return key.
  1801.        
  1802.             Just as you did in the Row window, find the variable STATE but do
  1803.        not press return.
  1804.        
  1805.             You  have   chosen  the  three  variables.    To  register  these
  1806.        variables, press [*].
  1807.        
  1808.             The pointer  is now in the window for the Column dimension.  Hold
  1809.        your finger  down on the return key and watch the pointer move through
  1810.        the windows.  The pointer  can move  to all  the windows but will make
  1811.        only eight  stops in this window--meaning you can have eight intervals
  1812.        of AGE.
  1813.        
  1814.             Type and enter EXACTLY AS SHOWN
  1815.        
  1816.             0-23(Under 2)
  1817.             24-35(2 yrs)
  1818.             36-47(3 yrs)
  1819.             48-59(4 yrs)
  1820.             60-71(5 yrs)
  1821.        
  1822.             Press the  enter key  until the  pointer is in the Page dimension
  1823.        window.
  1824.        
  1825.             Type and enter
  1826.        
  1827.             0-5.00(5th -)
  1828.             5.01-94(NORMAL)
  1829.             95-100(95th +)
  1830.        
  1831.             Move the pointer to Page dimension.
  1832.        
  1833.             Type and enter:
  1834.        
  1835.             A(NY)
  1836.             B(PA)
  1837.             C(NJ)
  1838.             D(VT)
  1839.        
  1840.             For reasons  of privacy the true identity of states A, B, C and D
  1841.        have been  deleted.   NY, PA,  NJ, and  VT are  not the actual states.
  1842.        They are merely examples.  You may use other initials for states.
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.                                         24
  1853.  
  1854.  
  1855.        
  1856.             Press [*]
  1857.        
  1858.             Another window  appears near  the bottom  of the screen.  You are
  1859.        given the  opportunity to  choose one  of the numeric variables in the
  1860.        file for calculation as an accumulated mean.
  1861.        
  1862.             You may  use the  spacebar or  the return  key  to  see  all  the
  1863.        variables in  the patient  file that  are numeric  (including the user
  1864.        selected extra variables).
  1865.        
  1866.             When you have reached BIRTHWT (birth weight) stop and press [*].
  1867.        
  1868.             What we  have done  is tell the program to read the birth weights
  1869.        of every  patient fitting  the cross-tabulation  and,  in  background,
  1870.        calculate the average birth weight for every cell.
  1871.        
  1872.             The next prompt asks whether or not we want to include the sample
  1873.        weight factor  in counting  the patients.  This window appears only if
  1874.        there is  a sample  weight field  in the  patient file  from which you
  1875.        selected to choose the variables.
  1876.        
  1877.             Your reply to this question will be [Y]
  1878.        
  1879.             The menu  returns.   We have  made the cross-tabulation template.
  1880.        This was  a simple  example but  it could  have been  a very  involved
  1881.        procedure. You  could have  had eight  columns, six rows and 14 pages.
  1882.        It would not be pleasant to make one of these templates every time you
  1883.        needed to cross-tabulate a file.  Therefore you should save it.
  1884.        
  1885.             Press [1] Save Tabulation Intervals.
  1886.        
  1887.             You are  prompted to  provide a  disk drive  and name.  Since the
  1888.        file we  read to  get the  variables was  called SAMPLE, we shall also
  1889.        name  the   interval  template  SAMPLE.    The  SAMPLE  template  will
  1890.        automatically be assigned the extension INT.  DO NOT USE EXTENSIONS OF
  1891.        YOUR OWN.
  1892.        
  1893.             Before we  continue, we  are going  to go  back and  look at  the
  1894.        intervals you  entered.   We are  going to  study the  rules of  their
  1895.        structure because  the only way you will ever get the cross-tabulation
  1896.        you want  is to  know how  the program  will interpret  what you  have
  1897.        entered.
  1898.        
  1899.             Let's dissect the interval 0-23(Under 2)
  1900.        
  1901.             It has three parts:
  1902.                  the bottom range [0]
  1903.                  the top range [23]
  1904.                  the user label [(Under 2)]
  1905.        
  1906.             The bottom  range and top range are always separated by a hyphen.
  1907.        Since age is a numeric field it requires a bottom and top range.
  1908.        
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.                                         25
  1919.  
  1920.  
  1921.             The program  interprets 0-23  as 0 thru and including 23.99.  The
  1922.        program will  apply .99  to the  top range of all whole number numeric
  1923.        intervals.
  1924.        
  1925.             The program  will apply  .09 to  the upper  range of  all numeric
  1926.        intervals that  are precise  to the nearest tenth (e.g. 25.3) would be
  1927.        interpreted by the program as 25.39.
  1928.        
  1929.             The program  will not  add .99  or .09  if the  top range  of  an
  1930.        interval that  is explicitly  precise to two decimals (e.g. 12.55 will
  1931.        be interpreted  as 12.55  because of  the two decimal precision).   23
  1932.        would be interpreted as 23.99 but 23.00 would remain 23.00 because the
  1933.        user was  explicit about  the decimal  precision.  The bottom range in
  1934.        this interval is not changed.
  1935.        
  1936.             The program  recognizes the  mathematical operators <, >, =>, and
  1937.        <=.  There is important information in Appendix A about the effects of
  1938.        using these  operators.   You don't need to read it now, but  YOU WILL
  1939.        NEED THE INFORMATION IN APPENDIX A FOR FUTURE REFERENCE.  COPY IT!
  1940.        
  1941.             When making  intervals for  non-numeric variables such as SEX and
  1942.        the character-type  extra  variables,  you  must  use  intervals  that
  1943.        precisely match the information you are looking for.
  1944.        
  1945.             In our SAMPLE file we are looking for STATE and the intervals are
  1946.        A, B, C, and D.  We didn't type the actual state names because none of
  1947.        the state names are in the fields for STATE in any of the records.  A,
  1948.        B, C  or D  are the  letters in  the STATE  field so  that is what the
  1949.        intervals should be.   The same would apply to SEX.  If you have 1 and
  1950.        2 in  the fields  for SEX  then that  is what  you will  type  as  the
  1951.        intervals.   You may also apply a descriptive label if desired such as
  1952.        1(Male) and  2(Female) so  that the  report will  read more clearly to
  1953.        someone else.
  1954.        
  1955.             How can you be sure you'll get what you asked for?
  1956.        
  1957.             Typing those  intervals and  getting them right the first time is
  1958.        going to  take experience.   There is a way to check and see precisely
  1959.        how the computer interpreted your intervals.
  1960.        
  1961.             Press [5] Edit and Create Intervals.
  1962.        
  1963.             The variables and the intervals come back on the screen.
  1964.        
  1965.             At this  time TURN  ON YOUR PRINTER. Press [?] and you will see a
  1966.        printout of  the ranges  the computer is using to tabulate the patient
  1967.        records.
  1968.        
  1969.             It is  not a  particularly neat  printout. It's a raw unformatted
  1970.        technical readout  of exactly  what values  the program is using.  You
  1971.        must read it as is.
  1972.        
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.                                         26
  1985.  
  1986.  
  1987.        2.3 EDITING INTERVAL TEMPLATES
  1988.        
  1989.             Any interval  template can  be edited.   If  it is already in the
  1990.        computer's memory you can [Esc] Escape back to the menu, press [5] and
  1991.        re-edit the  template. If  you don't  know whether  or not  there is a
  1992.        template in  working memory,  look at  the menu.   If there is a ninth
  1993.        selection then there is a template in the computer's working memory.
  1994.        
  1995.             You can recall and edit a stored template, too.
  1996.        
  1997.             1. First  you'd have  to press  [9] (Clear memory) and recall the
  1998.        interval template by name with selection [3] on the menu.
  1999.        
  2000.             2. Once  the interval template is in memory, press [5] to display
  2001.        it.   Use the spacebar to change the variables, press return to select
  2002.        them   and [*] to move to intervals.  You can re-type the intervals or
  2003.        delete them with spaces.
  2004.        
  2005.             3. After  you have  edited the  template, you can save them under
  2006.        the former name or make a new name.
  2007.             
  2008.        
  2009.        2.4 PERFORMING THE CROSS-TABULATION
  2010.        
  2011.             If you  have made  a useful template you are ready to perform the
  2012.        cross-tabulation.   The template should be in working memory.  If not,
  2013.        recall the template SAMPLE with selection [3].
  2014.             Press [6] Perform a cross-tabulation.
  2015.        
  2016.             The window for listing files will appear on the right side of the
  2017.        screen.   Here you  may list up to ten files.  With each file having a
  2018.        capacity of  5000 records, you have the potential for cross-tabulating
  2019.        50,000 patients.
  2020.        
  2021.             We have one file.  Therefore we would enter A:SAMPLE on the first
  2022.        line.   After you  press enter  the pointer will move down to the next
  2023.        line.  Since we have no more files, press [*].
  2024.        
  2025.             The screen  changes to a display similar to a spreadsheet.  It is
  2026.        a spreadsheet of sorts.  But with this spreadsheet you can monitor the
  2027.        results of a cross-tabulation in progress.
  2028.        
  2029.             Press the spacebar.
  2030.        
  2031.             Notice that  numbers are  rapidly appearing  or changing  on  the
  2032.        screen.   This is  page one  of the cross-tabulation.  Press the press
  2033.        bar again  and you  will see  the progress  on page  two.   Press  the
  2034.        spacebar every time you wish to monitor a different page of the cross-
  2035.        tabulation.
  2036.        
  2037.             The cross-tabulation  is complete  when PAGE appears in the lower
  2038.        left corner of the screen.
  2039.        
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.                                         27
  2051.  
  2052.  
  2053.             There are  four percentage calculation modes. They are PAGE, ROW,
  2054.        COLUMN and  GLOBAL.   The mean  birthweights we  collected can be seen
  2055.        through the  MEAN mode.  A list  of the pages in the tabulation can be
  2056.        seen in the LIST mode.  In all you have six selections: [P], [R], [C],
  2057.        [G], [M]  and [L].  Pressing the  first letter  of each selection name
  2058.        calls the selected mode.
  2059.        
  2060.             Press [R]  (to select the ROW mode) then press and enter [1] (for
  2061.        page 1).
  2062.        
  2063.             The numbers  appearing on  the screen show the number of patients
  2064.        in each  cell.   The  percentage  numbers  show  the  distribution  of
  2065.        patients by row.  Each row stands alone as 100 percent.
  2066.        
  2067.             Press [C] then press and enter [1].
  2068.        
  2069.             The percentage of distribution is now shown by column.
  2070.        
  2071.             Press [P] then press and enter [1].
  2072.        
  2073.             The percentage of distribution is now shown for the entire page.
  2074.        
  2075.             Press [G]
  2076.        
  2077.             Note that the word GLOBAL is in inverse video.
  2078.        
  2079.             Press [2] and enter.
  2080.        
  2081.             Notice that  we are  on page  2 and  the percentage  of the final
  2082.        total is  not 100  percent.   It is  less than 100 percent because the
  2083.        calculations were  made based  on a total which included every patient
  2084.        from all pages.  This a GLOBAL TOTAL of page 2.
  2085.        
  2086.             Press [M].
  2087.        
  2088.             MEAN BIRTHWT  is in inverse video.  Select any page number (1, 2,
  2089.        3 or 4) and press enter.
  2090.        
  2091.             You will see the average birth weight for each cell.
  2092.        
  2093.             You could go on indefinitely comparing the Global and Page totals
  2094.        and the  mean birth  weights of  these patients.   BUT YOU SHOULD SAVE
  2095.        YOUR RESULTS  FOR SAFEKEEPING AS SOON AS POSSIBLE.  You can escape the
  2096.        cross-tabulation spreadsheet  by pressing the [Esc] key.  [Esc] brings
  2097.        back  the  menu.  Pressing  [4]  on  the  menu  will  bring  back  the
  2098.        spreadsheet.
  2099.        
  2100.        2.5 SAVING CROSS-TABULATION INTERVALS
  2101.        
  2102.             Press [2] save tabulation results.
  2103.        
  2104.             A window  appears and  you are prompted to provide a name for the
  2105.        results. You  could call  the results  any  eight-character  name  you
  2106.        choose but  for the  sake of  continuity you  may consider  giving the
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.                                         28
  2117.  
  2118.  
  2119.        results the  same name as the patient file.  The extension TAB will be
  2120.        assigned to  the results  file so there will be no chance of confusion
  2121.        with  SAMPLE.ETB,  the  patient  file  and  SAMPLE.INT,  the  interval
  2122.        template.
  2123.        
  2124.        2.6 PRINTING THE CROSS-TABULATION
  2125.        
  2126.             The cross-tabulation  you've performed still sits in memory until
  2127.        you press  [9] Clear  memory on the main menu.  You should always save
  2128.        the interval template and the results of the tabulation.
  2129.        
  2130.        Press [7] Print/Graph cross-tabulation
  2131.        
  2132.             If there  are no  results in working memory, you will be prompted
  2133.        to retrieve  some from  your library of tabulation results. Tabulation
  2134.        results have  the extension TAB but you must not include the extension
  2135.        when answering the prompt.
  2136.             You will receive a print menu.
  2137.        
  2138.             The report  may be  printed to  show relative percentages several
  2139.        ways.
  2140.        
  2141.             1.   [C] The  Column Mode.   Each  column total  is  100%.    The
  2142.        percentages for the cell figures are relative to the column total.
  2143.        
  2144.             2.   [R] The  Row Mode.  Each row total is 100%.  The percentages
  2145.        for the cell figures are relative to the row total.
  2146.        
  2147.             3.  [G] The Global Mode.  N = all the patients in the report. The
  2148.        page total percentage is always a portion of the whole population.
  2149.        
  2150.             4.   [P] The  Page Mode.  N =  the total  number of patients on a
  2151.        given page.   The  page total  is always  100% and all figures on that
  2152.        page reflect each figures percentage of the page total.
  2153.        
  2154.             5.   [M] The  Mean Mode.   The number of patients in each cell is
  2155.        accompanied by  the mean  of whatever  numeric variable  was chose for
  2156.        mean calculation.
  2157.        
  2158.             6.   [H]  Histogram.    Histograms  are  available  but  will  be
  2159.        discussed in greater detail in the next chapter.
  2160.        
  2161.             You may select any of these modes (except Histogram).
  2162.        
  2163.             The user  may select  a two-line title. The title is optional. If
  2164.        no title  is desired,  press [ret]  key. To  delete a  previous  title
  2165.        (titles are  saved with  tabulation results),  input one  space.   You
  2166.        cannot change  just a  part of  the title.   Titles must be completely
  2167.        retyped for any changes.
  2168.        
  2169.             Footnotes may  also be added to the bottom of the printed report.
  2170.        You are  allowed three  lines for  footnotes.   If footnotes  are  not
  2171.        desired, press  return three  times.   To  delete  previous  footnotes
  2172.        (footnotes are  saved with  tab results),  input a space for each line
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.                                         29
  2183.  
  2184.  
  2185.        before pressing  [ret] key.   You can change one line of the footnotes
  2186.        without affecting the other lines.
  2187.        
  2188.             If the  tabulation results  you are  going to print come from the
  2189.        working  memory   and  have   not  been   stored,  the   program  will
  2190.        automatically store  your results  in a file called TEMP.TAB.  You can
  2191.        change the  name of  TEMP later  (See your DOS manual).  If you do not
  2192.        change the  name of  TEMP.TAB it will be overwritten the next time you
  2193.        attempt to print a cross-tabulation that was not saved.
  2194.        
  2195.             If you change or add a title or footnote, the program will update
  2196.        your results file.
  2197.        
  2198.             The printing  begins automatically. Make sure your printer is on.
  2199.        To cancel the printout press [Esc].
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.                                         30
  2249.  
  2250.  
  2251.        
  2252.        CHAPTER III  MAKING AND USING HISTOGRAMS
  2253.        
  2254.             Histograms--or bar  charts---are another  way of  viewing  cross-
  2255.        tabulation results.   Your  cross-tabulation  printouts  present  cold
  2256.        precise calculations.   Histograms  fall in  the realm of presentation
  2257.        graphics.   Presentation graphics  are  often  used  to  present  data
  2258.        symbolically--in this case as a bar chart.  If you have no interest in
  2259.        histograms, you  may skip  this chapter.   None  of the information is
  2260.        necessary in using other parts of the software package.
  2261.        
  2262.             NOTE: Graphic  capabilities for  this version  were given  a  low
  2263.        priority.   It takes a lot of memory to perform graphics.  Not knowing
  2264.        how useful  the feature  would be,  two  memory-saving  measures  were
  2265.        taken:
  2266.        
  2267.             1. There  is no  output to  ink-pen or  dot matrix  printers  and
  2268.        plotters.
  2269.        
  2270.             2. There is no adaptation for monochrome monitors.
  2271.        
  2272.             The histogram  feature is for desk top presentation use only.  If
  2273.        the function becomes popular among users, direct plotter compatibility
  2274.        may be developed in future versions.
  2275.        
  2276.        3.1 WHERE TO BEGIN
  2277.        
  2278.             Before you  can make  a histogram,  you have to have something to
  2279.        graph. You  need data.  The data comes from the results of a performed
  2280.        cross-tabulation. The  results may be either stored among your [.TAB ]
  2281.        files on  disk or  still in  memory from  a recently  performed cross-
  2282.        tabulation.   To speed  things along,  we have  provided a  set of tab
  2283.        results with your supplemental files diskette.  Pay close attention to
  2284.        what you  are doing  in the demonstration and follow the instructions.
  2285.        You will  need to  draw on  your experience  with this  practice  when
  2286.        graphing one of your files.
  2287.        
  2288.        3.2 FETCHING THE DATA
  2289.        
  2290.             Get back  to the  main menu.  Clear memory with selection 9 (if 9
  2291.        is present).  Press selection [7].
  2292.        
  2293.             You'll be  prompted to  identify the  tabulation result  file you
  2294.        wish to  print or  graph.   Your answer  will be  A: (or whatever disk
  2295.        drive) DEMOTAB.
  2296.        
  2297.             After the  computer has  fetched the  file, you will get a report
  2298.        overview.   The overview  is a  very general  summary of what's in the
  2299.        results.  It reads that these results came from a tabulation performed
  2300.        on a file of U.S patients.  It shows the three variables in the report
  2301.        and how  many patients  fit the  cross-tabulation;  approximately  2.9
  2302.        million. The data were weighted.  No one actually interviewed nearly 3
  2303.        million patients.     Also it  shows that  a mean  W/H percentile  was
  2304.        collected.
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.                                         31
  2315.  
  2316.  
  2317.        
  2318.             The next  prompt asks  whether or  not you  want a  printout or a
  2319.        histogram. Before  we jump into making histograms, we need some cross-
  2320.        tabulation printouts for reference.
  2321.        
  2322.             Answer the prompt with [P] and enter.
  2323.        
  2324.             The printout  menu appears.   You  will need the [C] Column Total
  2325.        printout and  the [M]  mean H/A z-score printout.  They are four pages
  2326.        long.  Turn on your printer and make them both at this time.
  2327.        
  2328.             When you have the printouts, study them briefly.  You'll see that
  2329.        the report is about the distribution of W/H z-scores in children up to
  2330.        5 years  old in  four different  states.   The Mean printout shows the
  2331.        average W/H z-scores for each of the cells.
  2332.        
  2333.             Keep the printout close by. You will need them for reference.
  2334.        
  2335.        3.3 MAKING THE HISTOGRAM
  2336.        
  2337.             When the program has returned you to the menu, press [7] again.
  2338.        
  2339.             This time, select [H] from the menu.
  2340.        
  2341.             The screen  changes  immediately  to  the  bar  graphics  display
  2342.        screen. The only thing on the screen is a percentage scale on the left
  2343.        edge and a small menu in the lower right hand corner.
  2344.        
  2345.             The tabulation  results data  is in  working memory  in a  three-
  2346.        dimensional array.  But this bar graph is only two-dimensional. It has
  2347.        only an  x and  y axis.   You'll  have to choose the two variables for
  2348.        each axis yourself.
  2349.        
  2350.             Press [1] Set axis.
  2351.        
  2352.             The variables  (or three  sides--row, column,  page) in the array
  2353.        are presented.  The first axis to be chosen will be the X axis.  The X
  2354.        axis is for the labels that go along the bottom of the screen.
  2355.        
  2356.             For this demonstration, choose [3] STATE.
  2357.        
  2358.             The next  prompt asks  for the  variable you  want to be the bars
  2359.        (the Y axis).  For this demonstration, select [1] W/H z-score.
  2360.        
  2361.             You may  see the  word  STANDBY  flash  briefly.    This  is  not
  2362.        something you  should be  concerned with.   The program is letting you
  2363.        know there  will be  a delay  while it  shuffles around  some  figures
  2364.        internally.
  2365.        
  2366.             The only  variable left  is AGE  which was  not chosen for either
  2367.        axis.   You'll notice  in the  printed reports  that age was broken up
  2368.        into five  groups.   We may  chose to look at one of the age groups or
  2369.        combine the  age groups  just as  the printed reports do on the bottom
  2370.        line of each page.
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.                                         32
  2381.  
  2382.  
  2383.        
  2384.             For this demonstration, we will [2] combine the ages.
  2385.        
  2386.             Now that  you've positioned all the variables you must select the
  2387.        intervals you wish to see.
  2388.        
  2389.             Press [2] LABELS.
  2390.        
  2391.             Since we  chose STATE as the X axis, we are presented with a list
  2392.        of available states.  There are four, but let's look at only the first
  2393.        three; Georgia, Texas and Alabama*.
  2394.        
  2395.             You must  choose the  three states one at a time by corresponding
  2396.        number.   Press [ret]  after each  choice.   To indicate that you have
  2397.        finished choosing, press [ret] without inputting a number.
  2398.        
  2399.             Notice that as you chose each state, its label appeared along the
  2400.        X axis.
  2401.             After choosing  all the  three states, you are presented the list
  2402.        of intervals  in the W/H z-score variable.  We are going to choose six
  2403.        of seven groups:  1,2,3,5,6 & 7.
  2404.        
  2405.             Enter each  number one at a time.  Press [ret] alone when all six
  2406.        groupings are chosen.
  2407.        
  2408.             A color  code appeared  as you  selected each label.  The numbers
  2409.        accompanying them  are showing  how many thousand of children fit into
  2410.        that label (e.g. The total number of children equal to or below -2 W/H
  2411.        z-score is 10,000 for the 3 states selected).
  2412.        
  2413.             You may  have also  noticed a  working title  at the  top of  the
  2414.        screen.   It shows that you are comparing the W/H percentiles in three
  2415.        different states  combining all  the age  groups.    The  number  2982
  2416.        followed by the letter K indicates thousand (2.9 million children).
  2417.        
  2418.            WHENEVER THE TOTAL NUMBER OF CHILDREN IN A REPORT EXCEED 1
  2419.        MILLION, ALL NUMBERS ARE REPRESENTED TO THE NEAREST THOUSAND.
  2420.        
  2421.             Press [4] EXECUTE.
  2422.        
  2423.             EXCUTE means  'draw something.'  Now it should be very clear what
  2424.        you have been building up to.  Each grouping of bars stands alone as a
  2425.        100% population--just  like your  Row Total printout.  The percentages
  2426.        represented on  the screen  are the  same percentages you will find on
  2427.        the bottom lines of the first three pages in the report.
  2428.        
  2429.        *The states are hypothetical.
  2430.        
  2431.             The bars  aren't very  tall.   None exceeds 40%.  A 100% scale is
  2432.        more than you need.  So let's change the scale first.
  2433.        
  2434.             Press [5] SCALE.
  2435.        
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.                                         33
  2447.  
  2448.  
  2449.             You have  a list  of five pre-set scales or you can make your own
  2450.        with selection 6.  Let's choose our own.
  2451.        
  2452.             Press [6].
  2453.        
  2454.             The prompt %age? wants you to provide a number.  You may give any
  2455.        positive number less than 100.  Type '40' and enter.
  2456.        
  2457.             The scale  changes immediately  with 40%  now as  the top.    The
  2458.        screen is blank.
  2459.        
  2460.             Press [4] EXECUTE
  2461.        
  2462.             The bars  are back  and with a finer definition in the difference
  2463.        in percentages.  Compare the figure on the Row Total printout with the
  2464.        bars on the screen.
  2465.        
  2466.        
  2467.        3.4 PRECISION BAR HEIGHTS
  2468.        
  2469.             The precision  of the  bar heights  may  sometimes  be  a  little
  2470.        off.Remember that  the printed  report's percentage are rounded to the
  2471.        nearest tenth.   The bar percentages are rounded to the nearest 1/40th
  2472.        of the scale.
  2473.        
  2474.             The general  rule is  that the  smaller the  scale the  finer the
  2475.        precision.It is  difficult to  get satisfactory  precision in the bars
  2476.        that rise  only to  8 percent when they must share the scale with bars
  2477.        that rise to 80 percent.
  2478.        
  2479.             It is  always best  to concentrate  on the  bars that are closely
  2480.        related in  height.   Let's re-label  the histogram  so we  can use  a
  2481.        smaller scale.
  2482.        
  2483.             Press [2] LABELS.
  2484.        
  2485.             This time  we will  choose all  four states for the X-axis labels
  2486.        and only  the equal  to and less than -1 W/H z-score for bars.  We are
  2487.        only using one bar this time.
  2488.        
  2489.             Press [5] SCALE.
  2490.        
  2491.             Our scale will be 20% which is a pre-set percentage.
  2492.        
  2493.             Press [4] 20%
  2494.        
  2495.             After the scale has changed press [4] EXECUTE.
  2496.        
  2497.             You could  even go to a smaller scale if you want, but by now you
  2498.        should  understand   the  effect  choosing  different  scales  has  on
  2499.        accuracy.
  2500.        
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.                                         34
  2513.  
  2514.  
  2515.        3.5  N-SHIFT
  2516.        
  2517.             N-SHIFT is  for number  shift.   With N-SHIFT  you change  the  N
  2518.        number. Right now we are in a combined ages mode.  All the ages of the
  2519.        children were taken as a whole.  But we do not have to look at all the
  2520.        age groups combined.
  2521.        
  2522.             We can concentrate on one of the age groups.
  2523.        
  2524.             Press [3].
  2525.        
  2526.             The program  asks if  you want  to combine  the ages or select an
  2527.        interval.  We are going to select an interval.
  2528.        
  2529.             Press [1].
  2530.        
  2531.             The list  of intervals  is presented.   For this example we shall
  2532.        choose the one-year-olds.
  2533.        
  2534.             Press [2], the corresponding number for the one-year-olds.
  2535.        
  2536.             We have focused the histogram on the 958,000 one-year-olds in the
  2537.        cross-tabulation results.  You won't  see the  new N number unless you
  2538.        press [2] and put out the labels again.
  2539.        
  2540.             We ought to clean up the screen since we are starting fresh.  You
  2541.        may press  [L] or  [H] for low or high intensity.  Low intensity draws
  2542.        grey lines  on the  screen.   Some monitors  can't draw  that color so
  2543.        there is  high intensity  which draws  light  blue  lines  across  the
  2544.        screen.   The intensity  setting may  be used  at anytime to clear the
  2545.        scale.
  2546.        
  2547.             You may select the labels again for the two axes.
  2548.        
  2549.             Select the first three states, choose all the W/H z scores except
  2550.        ZERO and  then execute.   Histograms  only seem  difficult to make the
  2551.        first few times.  If you stop and think about it, the menu is almost a
  2552.        step-through guide.
  2553.        
  2554.        3.6 SUMMARY OF STEPS
  2555.        
  2556.             The steps to making a histogram are:
  2557.        
  2558.             1. SET AXIS.  Decide what two dimensions are going to the X and Y
  2559.        axes.   Choose the  X-axis first.   The program will ask you to choose
  2560.        the bars--which  is the  Y-axis.   Then the  program will ask what you
  2561.        want to  do about the unchosen dimension---combine it or choose one of
  2562.        the intervals.
  2563.        
  2564.             2. LABELS.   You  are just choosing the intervals.  Remember that
  2565.        you're limited for space on the screen.  The more X-axis intervals you
  2566.        select, the fewer bars you can have.
  2567.        
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.                                         35
  2579.  
  2580.  
  2581.             3. EXECUTE.   Draw  the bars.   You can always execute as long as
  2582.        you have selected axes and set out the labels.
  2583.        
  2584.             4. SCALE.   If  after drawing  the bars you decide that you don't
  2585.        need a 100% scale, you simply choose another.
  2586.        
  2587.             5. N-SHIFT.   You  are choosing  to combine or interval the third
  2588.        dimension.  The N number at the top of the screen changes accordingly.
  2589.             
  2590.        3.7 GRAPHING THE MEANS
  2591.        
  2592.             Since we  have the  capability to  collect  the  average  of  any
  2593.        numeric quantity  on a  cell-by-cell basis,  we, appropriately enough,
  2594.        have the capability to plot a histogram of those means.
  2595.        
  2596.             Press [6] MEAN PLOT to plot the W/H z-score groups.
  2597.        
  2598.             The only  difference in  drawing bars  for means and drawing bars
  2599.        for percentages  is the  scale.   We aren't using a percent scale.  We
  2600.        are using  a range.   Since  the mean we collected was on W/H z-score,
  2601.        our top  range would be the reasonably expected highest z-score in the
  2602.        results.
  2603.        
  2604.             Let's choose the W/H z-score of 4 as the upper range.
  2605.        
  2606.             Type '4' and enter.
  2607.        
  2608.             Now we  have to  choose a  bottom range.   So  that scale will be
  2609.        symmetric, we'll choose -4 as the low W/H z-score.
  2610.        
  2611.             Type and enter '-4'
  2612.        
  2613.             Notice the  scale.  It ranges from -4 to 4.  In the middle is the
  2614.        zero line.  That line is brighter than the others.
  2615.        
  2616.             We would  select AXIS and LABELS the same as we did when we chose
  2617.        percentages.
  2618.        
  2619.             Choose the  three previous states for the X axis.  Choose the six
  2620.        previous W/H  z-scores as  the bars.   Combine all the ages.  Then [4]
  2621.        EXECUTE.
  2622.        
  2623.             Just like  when you  chose different  scales for percentages, you
  2624.        can choose  different ranges  for Mean  Plots.  This time set the mean
  2625.        plot scale  to 3  at the  top and  -3 at  the bottom.  The screen will
  2626.        clear and you can execute right away.
  2627.        
  2628.             Histograms are  pleasing illustrations  of numeric  data but they
  2629.        can be  difficult to  make, especially when you're trying to represent
  2630.        figures on  your printed  cross-tabulation.   For what it's worth, the
  2631.        histogram is  never wrong.   Many  times what  is really wrong is your
  2632.        interpretation  of   what  you're  seeing.    You  must  practice  and
  2633.        experiment with the histogram function.  Repeat this chapter again but
  2634.        use different axes.
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.                                         36
  2645.  
  2646.  
  2647.        
  2648.        CHAPTER IV  USING THE BATCH PROGRAM
  2649.        
  2650.             What is Batch processing?
  2651.        
  2652.             Batch  processing   is  generally  described  as  the  method  of
  2653.        processing several  pieces of  formatted data  from  a  disk  or  tape
  2654.        repetitiously rather than interactively with a human operator entering
  2655.        one record at a time.
  2656.        
  2657.             This is  the way  our bank  statements and  telephone  bills  are
  2658.        processed--in large quantities in repetition--hence the term 'batch'.
  2659.        
  2660.             Batch will  serve the  user who  has a  database  of  unprocessed
  2661.        records and  only needs  a way  to process then.  Batch may seem a bit
  2662.        more difficult  to follow  for the  inexperienced user.   The  typical
  2663.        Batch user  probably has  access to  a mainframe  computer, uses other
  2664.        file management software and perhaps knows a great deal about personal
  2665.        computers.
  2666.        
  2667.             Batch file  data on  a diskette  is  easy  to  spot.    The  file
  2668.        "DEMOBAT.TXT" on  the Supplemental  Files diskette  provided with this
  2669.        package is  a batch file. You can actually see the data in the file by
  2670.        putting the documentation diskette in drive A and entering.
  2671.        
  2672.             TYPE A:DEMOBAT.TXT
  2673.        
  2674.             What you'll  see are  long strings  of numbers.  Some batch files
  2675.        have numbers  and letters.   The  records scroll  down the screen in a
  2676.        pattern because there is an embedded code for carriage return and line
  2677.        feed at  certain intervals.  This embedded  interval marks  the  break
  2678.        point between  records. Because  you are able to make this file appear
  2679.        on the screen so easily, programmers usually call this a text file, or
  2680.        an ASCII (pronounced "ASKee") file--ASCII stands for American Standard
  2681.        Code for Information Interchange.
  2682.        
  2683.             If you've purchased and used DBASE or LOTUS, you've probably made
  2684.        several ASCII files.  A systems analyst or programmer could assist you
  2685.        in getting  ASCII files from a mainframe computer.  The point is, that
  2686.        if you've  got an ASCII file that has at least height, weight, sex and
  2687.        enough information  to derive  the age of a patient, the BATCH program
  2688.        can read it, process it for anthropometric indices, attach the results
  2689.        and write it to another file.
  2690.        
  2691.        4.1 PREPARING RAW DATA FOR BATCH PROCESSING
  2692.        
  2693.             Batch files  come from a mainframe computer or from a PC program.
  2694.        Where you  get the  data isn't  important. Getting the batch file on a
  2695.        diskette so you can get it into the PC is important.
  2696.        
  2697.             The user who moves data from another system or "host" computer to
  2698.        a PC  is "downloading."  One who downloads must already have the means
  2699.        of making this data transfer.  No program or procedure in this package
  2700.        can perform a system-to-system link.
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.                                         37
  2711.  
  2712.  
  2713.        
  2714.             Data already on a diskette must meet certain simple criteria:
  2715.        
  2716.             1. It must be a columnar ASCII file.
  2717.             2. It  must  have  the  standard  two-byte  end-of-record  marker
  2718.        CHR$(13)+CHR$(10) so  the program  knows where one record ends and the
  2719.        next begins.
  2720.             3. A standard EOF mark (CHR$(27) or CHR$(26)) must be at the
  2721.        end of the file.
  2722.        
  2723.             These  are   not  complex  requirements.  Most  off-the-shelf  PC
  2724.        database programs  meet these requirements and virtually all mainframe
  2725.        data is stored in ASCII with the appropriate file markers.
  2726.        
  2727.        4.2 PROCESSING THE RAW DATA FILE
  2728.        
  2729.             From this point the raw data will be called the SOURCE DATA.  The
  2730.        product we  are making  will be called the DESTINATION FILE.  You will
  2731.        need to  boot up  your computer  provide a formatted diskette for your
  2732.        destination file.
  2733.        
  2734.             After the computer has booted up and DOS is present, type:
  2735.        
  2736.             BATCH and [enter].
  2737.        
  2738.             Shortly after  typing BATCH,  you will  briefly  see  a  red  box
  2739.        introducing the  program and  telling you there will be a slight delay
  2740.        for loading the data table that calculates the indices.
  2741.             You will  see a menu appear after the data table is loaded.  When
  2742.        this has occurred you may remove your program diskette and put it away
  2743.        for the rest of the session.
  2744.        
  2745.             YOUR MENU CHOICES ARE:
  2746.        
  2747.             1. Examine the Batch File
  2748.             2. Retrieve Field Location Template
  2749.             3. Create Field Location Template
  2750.             4. Calculate and Convert Source Files5. Escape to DOS
  2751.        
  2752.        
  2753.             As your  understanding of  Batch grows  you will  use  all  these
  2754.        choices. For  the sake  of this  exercise, we will concentrate on four
  2755.        tasks:
  2756.        
  2757.             Task I.   Examine  a source  data file  to  determine  if  it  is
  2758.        suitable for batch processing.
  2759.        
  2760.             Task II.   Create  a field location template and use it to see if
  2761.        we can trial process a typical record.
  2762.        
  2763.             Task III.   Convert  a batch  file into  a specialized "ETB" file
  2764.        compatible with the Anthropometric Statistical Package
  2765.        
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.                                         38
  2777.  
  2778.  
  2779.             Task IV.   Convert  a batch file into another standard batch file
  2780.        for use on mainframes or with other statistics programs.
  2781.        
  2782.             To succeed you must follow only the instructions given.  Don't
  2783.        anticipate procedures.
  2784.        
  2785.        4.3 EXAMINING SOURCE DATA FILE
  2786.        
  2787.        Step 1.
  2788.        
  2789.             Press [1]
  2790.             At this point the screen changes.  A four-line scale appears near
  2791.        the top half of the screen and the lower half is dominated by a bright
  2792.        blue field and a red window.
  2793.        
  2794.             In the window there is the prompt:
  2795.        
  2796.             DISK DRIVE AND NAME OF SOURCE FILE?
  2797.             EXCEPTED FORMAT B:YOURFILE.EXT
  2798.        
  2799.             Your reply will be:  A:DEMOBAT.TXT [return]
  2800.        
  2801.             NOTE: A and B are disk drives.  Throughout this exercise you will
  2802.        use whatever letter represents the disk drive you are using.
  2803.        
  2804.             Appearing in the same window, the next prompt is:
  2805.        
  2806.             RECORD LENGTH?
  2807.        
  2808.             Your reply will be  [return]
  2809.        
  2810.             Pressing [ret]  means that  you don't know what the record length
  2811.        is and  you want  the program  to determine  it by searching the first
  2812.        record for  an end-of-record mark.  There could be many occasions when
  2813.        you aren't  well-acquainted with the source data and the record length
  2814.        is not  certain.   Never 'guess'  or 'estimate'  a record length.  You
  2815.        either know it or you don't.
  2816.        
  2817.             You'll notice that the computer has displayed a string of numbers
  2818.        along the  lines of  the scale.  The scale is tick-marked in 5 and 10-
  2819.        byte increments.  This is a graphic representation of the first record
  2820.        in the  DEMOBAT.TXT source file.  The computer reports that the record
  2821.        is 246  bytes long  (the term 'bytes' is preferred over 'columns' when
  2822.        speaking of disk and tape files).
  2823.             The blinking  colon in the blue box is the actual location of the
  2824.        end-of-record marker.   For  our purpose  it is not counted as part of
  2825.        the record's  usable length.  The program,  however, does recognize it
  2826.        and processes  the record's  length as  248.   This  offset  need  not
  2827.        concern you.
  2828.        
  2829.             Just because  the computer  reported that the first record is 246
  2830.        bytes long  doesn't mean  that every  record in  the source file is of
  2831.        equal length.   For  the program  to work  all the records must be the
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.                                         39
  2843.  
  2844.  
  2845.        same length.  You must check a few records at random to make sure that
  2846.        they are all the same length.
  2847.        
  2848.        Step 2.
  2849.        
  2850.             There is  a prompt  on the  screen that asks if you would like to
  2851.        check another record.  You may enter another number: Let's say 45
  2852.        
  2853.             Doing this  causes the program to pick the 45th record -- or what
  2854.        is hoped  to be  the 45th  based on  the premise  that every 246 bytes
  2855.        (plus 2-byte maker) is the start of a new record.
  2856.        
  2857.             The computer  reports back  that this random record is indeed 246
  2858.        bytes just  like the first record.  Had any of the records before 45th
  2859.        record been  shorter or  longer than 246, the synchronization would be
  2860.        off and  the computer  would have  "landed" in the middle of a record.
  2861.        Some number other than 246 would have been reported in that event.
  2862.        
  2863.             ANYTIME THE  PROGRAM CHECKS  A RANDOM  RECORD  THE  LENGTHS  MUST
  2864.        ALWAYS BE THE SAME. IF NOT, YOU CANNOT PROCESS THE FILE.
  2865.        
  2866.             This information,  though fringing  on the  technical, is useful.
  2867.        When you start to examine your own data files for suitability you will
  2868.        need to repeat this task to assure yourself that your file is uniform.
  2869.        Uniformity is fundamental to batch file processing.
  2870.        
  2871.        4.4 IDENTIFYING FIELD LOCATIONS
  2872.        
  2873.             In order  to perform  the functions  in this  task, you must have
  2874.        already examined batch file and fetched a record to the screen.
  2875.        
  2876.             In this  critical step you tell the computer the column locations
  2877.        for various  pieces of  information within  the record.   You'll prove
  2878.        that you column locations are correct by test processing a record.
  2879.        
  2880.        Step 1. Press [3].
  2881.        
  2882.             The first  fields you  must identify  are the  ones necessary  to
  2883.        compute  the  anthropometric  indices.  A  large  window  appears  and
  2884.        displays the  fields the  program recognizes when processing a record.
  2885.        It will  not be  necessary to  fill out every field.  At a minimum the
  2886.        computer must know the patient's:
  2887.        
  2888.             SEX:  recognizes M and F or 1 and 2 as male and female
  2889.        respectively.
  2890.             AGE:  computes from birth and visit date or age in months.
  2891.             HEIGHT:  recognizes HT cm or feet and inches.
  2892.             WEIGHT:  recognizes WT kgs or pounds and ounces.
  2893.        
  2894.             Notice the  triangle-shaped pointer.   This  pointer can be moved
  2895.        from field  to field  by pressing  [return] and [backspace].  This way
  2896.        the user can skip around and correct mistakes easily.
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.                                         40
  2909.  
  2910.  
  2911.             Using the  figures below,  fill out  the field locations for this
  2912.        record. If  you make a mistake, press [return], the backspace key (NOT
  2913.        left arrow), and type over the error.
  2914.        
  2915.           I.D.      1-11
  2916.           SEX       59
  2917.           VISIT DT (yr) 45-46  VISIT DT (mo) 41-42  VISIT DT (da) 43-44
  2918.           BIRTH DT (yr) 55-56   BIRTH DT (mo) 51-52  BIRTH DT (da) 53-54
  2919.        
  2920.           HT cms   87-90,1
  2921.           WT kgs   84-86,1
  2922.        
  2923.             The computer  monitors your  inputs.   You'll hear  a beep if you
  2924.        input a negative range like 56-44.  If you type in an incorrect field,
  2925.        go back  to that  field and  void it out with a single slash [/].  The
  2926.        slash causes the computer to ignore the field.
  2927.        
  2928.             You may  have noticed  as you  entered your  field locations that
  2929.        data in  the record  display was  highlighted.  On monochrome monitors
  2930.        the highlighting is in inverse video.  On color monitors:
  2931.        
  2932.                 FIELD        COLOR
  2933.        
  2934.                 I.D          White
  2935.                 Sex          Blue
  2936.                 Visit        Magenta
  2937.                 Birth        Red
  2938.                 WT cm        Green
  2939.                 HT kgs       Yellow
  2940.        
  2941.             In fields  followed by  ",1"  (as  height  and  weight  are)  the
  2942.        computer will  assume one  decimal place.     ",2" would  indicate two
  2943.        decimal places  and so  forth.  The program will also accept data that
  2944.        already has  decimal  points  in  the  record.  Don't  use  the  comma
  2945.        extension on fields that already have decimals in the data.
  2946.        
  2947.        Step 2.  Press [*] asterisk.
  2948.        
  2949.             The window  reappears except there aren't any field labels.  This
  2950.        is another  field location  routine except this time you will indicate
  2951.        User-Selected Fields.   User-Selected  Fields are extra classification
  2952.        fields beyond  those needed  for anthropometric  computation.  You may
  2953.        have up to 24 of these extra fields.  In our example we are using only
  2954.        seven.
  2955.        
  2956.        Step 3. Create extra variables from the table below.
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.                                         41
  2975.  
  2976.  
  2977.        
  2978.             HOMESTD  (for homestead)
  2979.             #HHSIZE  (household size. # mean this a numeric field)
  2980.             INCOME  (main source of income)
  2981.             POLIO
  2982.             DIPTH
  2983.             MEASLES
  2984.             VACERT  (vaccination certificate)
  2985.             #SIBS  (brothers and sisters)
  2986.             @SW
  2987.        
  2988.             Press [*] to quit.
  2989.        
  2990.             Notice that  two of  the fields have a '#' in front of them. This
  2991.        means that  this field  is for  numeric  data  and  that  mathematical
  2992.        calculations can be made on whatever numbers are in that field.
  2993.        
  2994.             The '#'  sign will  not be  saved with  the label but the program
  2995.        will still treat it as a numeric data field.
  2996.        
  2997.             The other  unusual label  is '@SW'.   That is the exclusive label
  2998.        for sample  weight.   It tells the program that anything in this field
  2999.        is to  be the patient's true count in a cross tabulation. (see: SAMPLE
  3000.        WEIGHTS, Chapter  1).   IF EVER  YOU HAVE SAMPLE WEIGHTS IN YOUR BATCH
  3001.        FILE YOU MUST USE '@SW' AS THE FIELD LABEL.
  3002.             Now that  you have  identified or  "labeled" the fields, you must
  3003.        put in their field locations.
  3004.        
  3005.        Step 4.  Follow the information below. Type in the field location data
  3006.        beside the indicated label.
  3007.        
  3008.             HOMESTD  7-9
  3009.             #HHSIZE  67-68
  3010.             INCOME  222-223
  3011.             POLIO  78
  3012.             DIPTH  79
  3013.             MEASLES  80
  3014.             VACERT  76
  3015.             #SIBS  224-225
  3016.             @SW  171-175
  3017.        
  3018.             Press [*] to quit.
  3019.        
  3020.        Step 5.  Press the [ret] key.
  3021.        
  3022.             Notice that  another  window  appears  quickly  followed  by  the
  3023.        computed anthropometric  indices.   What  has  happened  is  that  the
  3024.        computer performed  a test  computation on  the on-screen record based
  3025.        upon the information you supplied in the field locations.
  3026.        
  3027.             The information  has not  been saved  anywhere but it serves as a
  3028.        way to  tell you  how the computer interpreted the data in the record.
  3029.        This is  the way  it will interpret all your records.  If anything was
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.                                         42
  3041.  
  3042.  
  3043.        wrong, this  would be  the time  to fix it.  When you process your own
  3044.        source data you will need to use this task as a guide.
  3045.        
  3046.        Step 6.  Press the [ret] key.
  3047.        
  3048.             Another prompt window appears.
  3049.             This time  you are  told:   THESE FIELD  LOCATIONS WILL  BE SAVED
  3050.        ASSIGN DISK DRIVE AND A NAME
  3051.        
  3052.             Any name up to eight characters is acceptable but for the sake of
  3053.        simplicity and  easy coordination,  you may  use the  same name as the
  3054.        first eight characters of your source data file.
  3055.        
  3056.             For this  exercise your  reply will  be:   A:DEMOBAT  There is no
  3057.        default name  for a template but it is still recommended that you name
  3058.        it after your source file.
  3059.        
  3060.             You have  just made a small file of the field location data. This
  3061.        little file  is called  a "template." It contains the field locations,
  3062.        the decimal  placement and  the symbols for male and female.  Making a
  3063.        file like  this will  save you from having to re-enter field locations
  3064.        the next time a DEMOBAT.TXT batch file is processed.
  3065.        
  3066.             Even though  the batch  file is also called DEMOBAT, the computer
  3067.        knows the  difference because it attaches the extension  ".FLD" to the
  3068.        template you just made. Therefore:
  3069.        
  3070.             IT IS IMPORTANT THAT YOU NEVER MAKE EXTENSIONS OF YOUR OWN !
  3071.        
  3072.             The program  will not be able to find your templates if you start
  3073.        applying extensions  to your template names.  Only the batch file that
  3074.        was downloaded or created by some other PC software is allowed to have
  3075.        its own extension.  The program assigns all other extensions.
  3076.        
  3077.        
  3078.        4.5 CONVERT AND COMPUTE SOURCE FILE
  3079.        
  3080.             In the  previous two tasks you examined your source data file for
  3081.        suitability; made  a template  of the field locations, including those
  3082.        of seven  user selected  variables; and  submitted a  record to a test
  3083.        computation.   Now that you are sure one record will process correctly
  3084.        you should be able to process the whole batch file.
  3085.        
  3086.        Step 1.  Press [4].
  3087.        
  3088.             The screen  has cleared  and changed  again.   There is  a  coral
  3089.        colored border  at the  top of  the screen  and a yellow prompt window
  3090.        presenting you with three choices.
  3091.        
  3092.             Choices B and C are for making batch files into other reformatted
  3093.        batch files  for use  in other  systems.   Choice A  is for making ETB
  3094.        patient files  compatible with ENTRY and TAB. We are going to make [A]
  3095.        first.
  3096.        
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.                                         43
  3107.  
  3108.  
  3109.         Step 2. Press [A] and [enter].
  3110.        
  3111.             Another window appears near the top of the screen.  It reads:
  3112.        
  3113.             SOURCE FILE [A:DEMOBAT.TXT]
  3114.        
  3115.             The file  name in  the brackets  is a  default name. If you press
  3116.        [ret]  that   is  the   file  it  will  process.  Since  you  examined
  3117.        DEMOBAT.TXT, it  is assumed  that is  the file you wish to convert. If
  3118.        not, enter the name of a new file.
  3119.        
  3120.             WARNING: It  is not  wise to  convert batch files to ETB files on
  3121.        the same  disk drive.   Depending on the size of the batch file, there
  3122.        is the  possibility of running out of room on the diskette.If you have
  3123.        only one  disk drive you will have to use short batch files.  Each ETB
  3124.        record requires  221 bytes of disk space. You'll have to experiment to
  3125.        see how many records fit on a diskette that already has a batch file.
  3126.        
  3127.        Step 3.  The prompt asks for the LENGTH OF SOURCE RECORDS? [246]
  3128.             The answer  is 246  unless you've  decided to process a different
  3129.        file. If  you press  return to  skip this  prompt,  the  program  will
  3130.        default to 246.
  3131.        
  3132.             The prompt asks HOW MANY RECORDS ARE IN SOURCE FILE?
  3133.        
  3134.             Its not  often that anyone knows or remembers the exact number of
  3135.        records in  a batch  file. If  you don't  know you  would  just  press
  3136.        [return]. The  default answer  is 5000.   The  computer would  process
  3137.        until it  ran out  of batch  records or  wrote 5000 records, whichever
  3138.        occurred first.   If  you wish to cut off your batch file at a certain
  3139.        point you  would enter that cut-off number.  The program will not make
  3140.        more than 5000 ETB records per file.
  3141.        
  3142.             Your reply to the prompt is just [ret]
  3143.        
  3144.        STEP 4.  The prompt asks BEGIN CONVERSION WITH WHAT RECORD?
  3145.        
  3146.             You are  able to  start at  any point  in the  source file.  This
  3147.        enables you  to process  source files  with thousand  of  records  and
  3148.        divide it into several ETB-compatible files.  The default answer is 1.
  3149.        
  3150.             Reply to the prompt with a null [return] answer.
  3151.        
  3152.        STEP 5.  The prompt asks PRINT FLAGGED RECORDS (Y/N)?
  3153.             Here you  choose whether  or not  you want a hard copy of records
  3154.        that receive  Edit Flags.   The  answer must  be N  or  Y  in  capital
  3155.        letters.   You may  answer this  prompt either  way  you  choose.  The
  3156.        default is "N".
  3157.        
  3158.        STEP 6.   The  prompt asks  WRITE  FLAGGED  RECORDS  TO  FILE  (Y/N)?A
  3159.        positive reply  means that  the Edit  Flagged records, though possibly
  3160.        the result  of a  bad data  entry will be included with the file.  You
  3161.        may answer this prompt either way.  The default is "Y".
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.                                         44
  3173.  
  3174.  
  3175.             The process has begun.  The batch files are being read, computed,
  3176.        converted and saved on another file that can be appended, searched and
  3177.        edited with ENTRY or cross-tabulated and printed with TAB.
  3178.        
  3179.             The resulting  indices are  displayed  near  the  bottom  of  the
  3180.        screen.     The  flagged   records  are   being  displayed  in  metric
  3181.        measurements near  the top.  Deficient records were purposely included
  3182.        in this  file.   Included in  this display  is a count of  the flagged
  3183.        records and  what percentage  of  the  batch  file  contained  flagged
  3184.        records.
  3185.        
  3186.             If you would like to see the flagged data in U.S. Standard rather
  3187.        than metric,  press [U].   The  change may  not be immediate but don't
  3188.        press [U] more than once.
  3189.        
  3190.             To switch back to metric, press [M].
  3191.             To turn  off the display of indices, press [D]. The program works
  3192.        faster with the display of indices turned off.
  3193.        
  3194.             To escape  the conversion  process, press  [Esc].  No damage will
  3195.        result to the file. The program will finish converting whatever record
  3196.        it happens  to be  processing and  then close  the file.    Any  batch
  3197.        records sent to this file in the future will be added at the end.
  3198.        
  3199.             The return of the menu indicates the successful completion of the
  3200.        conversion process.
  3201.        
  3202.             Review the  work accomplished so far.  Practice them again with a
  3203.        few variations  until you  are comfortable with converting batch files
  3204.        into data files useful to this package.
  3205.        
  3206.        
  3207.        4.6 CONVERTING BATCH FILES TO OUTPUT FILES
  3208.        
  3209.             This task covers the B and C conversion options mentioned in Task
  3210.        III.   Use of either of these options causes the batch file data to be
  3211.        computed and the results to be output as another batch file.
  3212.        
  3213.             Advanced users  and programmers  using DBASE,  SPSS*,  SASGRAPH*,
  3214.        etc., would  be the  only ones  most likely  to need  this capability.
  3215.        Just as  when the  original  batch  file  was  downloaded  to  the  PC
  3216.        diskettes, these new batch files can be "uploaded" to the mainframe.
  3217.        
  3218.             Users who  don't  have  access  to  a  mainframe  or  some  other
  3219.        sophisticated statistical  process may  wish to practice this task for
  3220.        experience but  there will  be no  useful application for the files it
  3221.        produces using ENTRY and TAB.
  3222.        
  3223.        Step 1.  Escape back to DOS and restart the program.  Connect and turn
  3224.        on your printer. Make sure paper is loaded and ready.
  3225.        
  3226.        
  3227.        * SPSS and SASGRAPH are copyrighted trademark names.
  3228.        
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.                                         45
  3239.  
  3240.  
  3241.             Though this  task is  very similar  to TASK  III, we are going to
  3242.        approach the procedure by a quicker route.
  3243.        
  3244.        Step 2.  When you have the menu on the screen Press [4].
  3245.        
  3246.             You are  given a choice of A, B or C. You already tried A. B or C
  3247.        produces essentially  the same  product:  a  plain  ASCII  file.    As
  3248.        indicated beside  the two choices, one includes decimals and the other
  3249.        does not.
  3250.        
  3251.             For this practice, choose C.  (You must use upper case C)
  3252.        
  3253.             When prompted  for the  name  of  the  source  file,  reply  with
  3254.        [A:DEMOBAT.TXT]. The  NO DEFAULT  message reminds  you that  you  must
  3255.        provide a  file name.  The program  cannot default  on the  very first
  3256.        prompt after start-up.
  3257.        
  3258.             The next  prompt asks  you for  the field  location template. The
  3259.        default response  is A:DEMOBAT.   You may press the return key and the
  3260.        program will load the template.
  3261.        
  3262.             The next  prompt asks for the name you wish to give the new batch
  3263.        file you  are making.   The  default is  A:DEMOBAT.   The program will
  3264.        attach the  extension ".SRC"  to it.   Press the return key to use the
  3265.        default name.
  3266.        
  3267.             The next  prompt asks  for the  length of  the batch records. The
  3268.        default is  246. The  program found  that number  in the template file
  3269.        DEMOBAT.FLD. Press the return key to use the default.
  3270.        
  3271.             The next  prompt asks how many records are in the batch file. You
  3272.        shouldn't even answer this prompt unless you purposely wish to cut off
  3273.        the processing at a certain point.
  3274.        
  3275.             The next prompt asks at what record you wish to start processing.
  3276.        The default  is the  first record.   You  wouldn't answer  this prompt
  3277.        unless you  want  the  program  to  start  somewhere  other  than  the
  3278.        beginning.
  3279.        
  3280.             The next  two prompts  ask whether  you want  to print  out  your
  3281.        flagged batch records and if you want to save the flagged records. The
  3282.        defaults are No and Yes respectively.
  3283.        
  3284.             The next  prompt asks  if  you  want  a  printout  of  the  field
  3285.        locations. The default answer is [Y].
  3286.        
  3287.             The printer will print out the field locations for the file it is
  3288.        making.   Field location  information is  important to  the programmer
  3289.        receiving the processed output file.
  3290.             This program  writes records  that place  all the  results of the
  3291.        anthropometric computation,  computed age, and three-position sequence
  3292.        number at  the beginning of the record followed by a copy of the batch
  3293.        record it  processed.   In other words, you get a copy of the original
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.                                         46
  3305.  
  3306.  
  3307.        batch file  with new  computations attached  to the beginning of every
  3308.        record.
  3309.        
  3310.             When the records are processed, you may escape to DOS and examine
  3311.        what the computer has made by entering  TYPE A:DEMOBAT.SRC.  TYPE is a
  3312.        DOS command.   Using PRINT instead or TYPE will send the output to the
  3313.        printer.  Consult your DOS manual if you have any difficulties.
  3314.        
  3315.             Because we  used option  [C], there  are decimals in the computed
  3316.        part of  the record.   If  you had  used selection  [B] you would have
  3317.        obtained the  same information  in the  same sequence  except with  no
  3318.        decimals.
  3319.        
  3320.             The correct  choice depends  on your  needs.  Be warned, however,
  3321.        that both  B and  C write  the extension .SRC to the file they create.
  3322.        You cannot  have a  B and  C-created file  of the same name unless you
  3323.        create them on separate disk drives.
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.                                         47
  3371.  
  3372.  
  3373.        APPENDIX A
  3374.        
  3375.        Mathematical Operators Recognized by TAB
  3376.        
  3377.             Less than  (<): The  program would interpret <23 as all values of
  3378.        23 minus  .01-- in this case all values 22.99 and less.  The value .01
  3379.        is always  subtracted from  the value  given; therefore <-8  means all
  3380.        values starting at -8.01 and less.
  3381.        
  3382.             Less than/equal   (<=):  The program  would interpret <=23 as all
  3383.        values 23 and less.
  3384.        
  3385.             Greater than  (>): The  program would interpret >23 as all values
  3386.        23.00 plus  .01-- in  this case  all values 23.01 and more.  The value
  3387.        .01 is  always added  in this case no matter what the value; therefore
  3388.        >55.68 means  all values starting at 55.69 and up.
  3389.        
  3390.             Equal/greater than  (=>): The program would interpret =>23 as all
  3391.        values 23 and greater starting at 23.00.
  3392.        
  3393.             Hyphen (-):   The hyphen is used to indicate the entire span from
  3394.        one value  to another  value.   The program  adds .09  to upper  range
  3395.        values that  are already  precise to one decimal places.  The programs
  3396.        adds  .99 to upper range values that have no decimal places.
  3397.        
  3398.             When positioned  properly  the  program  detects  the  difference
  3399.        between a  hyphen and a negative sign.  Therefore it is correct to use
  3400.        a label  like -5.52--4.01  to mean  numbers between  negative 5.52 and
  3401.        negative 4.01.   The  program "knows" which is the hyphen.  DO NOT USE
  3402.        BRACKETS OR PARENTHESIS.
  3403.        
  3404.             Parentheses (  ): The  parentheses is  for descriptive  labeling.
  3405.        The interval  2.00-2.99 might  be given  (+2 Zscr).  "+2 Zscr" will be
  3406.        printed on  the finished  report instead  of 2.00-2.99.  LABELS MAY BE
  3407.        SEVEN CHARACTERS AND SPACES WIDE.
  3408.        
  3409.             CROSS-TABULATING FOR EDIT FLAGS
  3410.        
  3411.             It isn't wise to cross-tabulate with edit flags in the ETB files.
  3412.        However you  can cross-tabulate  for Edit  Flags.  Select the variable
  3413.        "EF" as a page, row or column.  The interval would be 'X'.
  3414.        
  3415.             CROSS-TABULATING FOR DATES
  3416.        
  3417.             It is  possible to  cross-tabulate  by  visit  date  (V'DATE)  or
  3418.        birthdate  (B'DATE).     If,   for  example,  you  wanted  to  make  a
  3419.        longitudinal study  to   look at  patient progress  over the course of
  3420.        several months  you would  select V'Date   as  either a  page, row  or
  3421.        column variable,  The intervals  would be  yymmdd-yymmdd (e.g. 850701-
  3422.        850831(JUL-AUG).   This example  searches from  July 1, 1985 to August
  3423.        31, 1985.   The  yymmdd format  must be  used because  that is the way
  3424.        dates are  written on  the record.   Also:  the early  date must  come
  3425.        before the later date.
  3426.        
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.                                         48
  3437.  
  3438.  
  3439.        APPENDIX B
  3440.        
  3441.        Files made by Version 3
  3442.        
  3443.             If you  were a  former user  of Version  2, you've  noticed  that
  3444.        Version 3 makes and calls upon a staggering variety of files.  This is
  3445.        a summary of those file and their purpose.
  3446.        
  3447.             DATA:  This is a sequential file of growth curves and a permanent
  3448.        part of  the package.   It  cannot be  written to  by  the  Version  3
  3449.        programs.   Loss of  this file  would  render  your  Batch  and  Entry
  3450.        programs unless.
  3451.        
  3452.             ETB: These  are patient  records.   They are  made with ENTRY and
  3453.        BATCH.   Each record is 221 bytes long regardless of how little or how
  3454.        much information  is put in them.   They are ASCII and can be used "as
  3455.        is" in any outside program that will tolerate decimals in the data.
  3456.        
  3457.             FLD: These  are field  location files  made and used by the Batch
  3458.        program.   They contain  the column  locations of  key data in a batch
  3459.        file that  the Batch program already processed.  They can be recalled,
  3460.        edited, and reused in several variations to process other batch files.
  3461.        
  3462.             INT: These  are cross-tabulation  interval files made and used by
  3463.        the Tab program.  They contain the variables and the intervals and the
  3464.        variable selected  for calculation  of a mean.  INT files are known as
  3465.        templates and  they can  be recalled,  edited and  stored  in  several
  3466.        variations by the Tab program.
  3467.        
  3468.             SRC: These  are ASCII  output files  of processed  batch records.
  3469.        They have  the Version  3-computed anthropometrics,  age, sex,  and  a
  3470.        sequence number  in front followed by the original batch record.  They
  3471.        can  be  used  in  any  mainframe  or  PC  statistical,  graphics,  or
  3472.        tabulation program that uses standard rectangular files.
  3473.        
  3474.             TAB: These  are stored  cross-tabulation  results.  They  contain
  3475.        every tabulated  figure in  each cell and various control data used by
  3476.        the Tab program.
  3477.        
  3478.             TEMP.TAB: This  file is produced while using the TAB program when
  3479.        a user  attempts to  print the  results of  a cross-tabulation without
  3480.        saving the  results.   The  file  can  be  renamed  (keeping  the  TAB
  3481.        extension) and added to the user's library of save results.
  3482.        
  3483.             TXT:     These  are   'deprocessed'  ASCII   batch  records  made
  3484.        exclusively by  the SWAP  Version 2  to Version  3 conversion program.
  3485.        They are  88 columns  wide and  can be  used in other PC and mainframe
  3486.        application.   They are  made especially  for the  Batch program which
  3487.        reprocess these records into ETB and SRC files.
  3488.        
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.                                         49
  3503.  
  3504.  
  3505.        APPENDIX C
  3506.        
  3507.        
  3508.        Accuracy of Anthropometric Indices
  3509.        
  3510.             The anthropometric indices are calculated by a subroutine that is
  3511.        identical to  a FORTRAN language subroutine in the central computer at
  3512.        the Centers for Disease Control.  It will more than likely differ from
  3513.        other  anthropometric   programs  used   at  universities   and  other
  3514.        government agencies.   This  software package  does not  supercede  or
  3515.        refute the calculation routines of any other program.
  3516.        
  3517.             The only time the accuracy of the anthropometric indices may come
  3518.        into question  within this  package is  when users  use U.S.  standard
  3519.        feet/inches and pounds/ounces rather than metric.
  3520.        
  3521.             Although the  option to use U.S. standard exists in the Entry and
  3522.        Batch programs, the program computes and stores information in metric.
  3523.        The anthropometric  indices,  computed  age,  height  and  weight  are
  3524.        rounded up  to the nearest two decimal places (values are rounded down
  3525.        in the case of negative numbers).
  3526.        
  3527.             When U.S.  standard measures  are used  the program will make its
  3528.        anthropometric calculations with full precision metric equivalents and
  3529.        then round  off the  metric equivalent to the nearest hundredth before
  3530.        writing the record to the patient file.
  3531.        
  3532.             When using  the Edit  function of  Entry, you may notice a sudden
  3533.        shift in  the computed  anthropometric  indices  when  the  record  is
  3534.        restored to the disk.  The shift may be as great as +- .03 because the
  3535.        heights and  weights entered  in U.S.  Standard cannot be recalled and
  3536.        precisely represented  regardless of  what display mode you are using.
  3537.        If the  slight discrepancies  cannot be tolerated then it is suggested
  3538.        that you  re-enter the  U.S. Standard  measurements anytime you edit a
  3539.        record for any reason.
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.                                         50
  3569.  
  3570.  
  3571.        APPENDIX D
  3572.        
  3573.        Lotus Compatibility
  3574.        
  3575.        
  3576.        
  3577.        CONVERTING LOTUS TO CASP
  3578.        
  3579.             Lotus print  files (PRN)  are already  compatible with Batch, the
  3580.        file processing  program explained in Chapter IV of this handbook.  As
  3581.        stated in  Chapter IV, the main requirement for processing a text file
  3582.        is that  all the  records be  uniform in  length.  In most ways, Lotus
  3583.        print files,  meet that requirement.  No special conversion program is
  3584.        needed.
  3585.        
  3586.             The main  obstacle to  processing a Lotus print file is that most
  3587.        users apply  titles, sub-headings  and assorted  banners and  carriage
  3588.        returns ahead  of the  data.   Since the  Batch program  interprets  a
  3589.        horizontal row  of cells  as a single record, the various headings and
  3590.        carriage returns  are useless  to the  process and,  in fact, may even
  3591.        prevent examination of the file.
  3592.        
  3593.             If you are using Lotus 1-2-3 as a database for patient records:
  3594.        
  3595.             1. each record must contain sex, age, height and weight
  3596.        horizontally.
  3597.             2. the database worksheet must be stored as a print file.
  3598.             3. all extraneous documentation (headings, legends, etc) must be
  3599.        deleted.
  3600.        
  3601.             Using the  knowledge you  acquired in  Chapter IV,  you should be
  3602.        able to examine one of the records from the Lotus print file, identify
  3603.        the column  locations of the individual fields, and process the entire
  3604.        print file for output as ETB files or computed text files.
  3605.        
  3606.        
  3607.        CONVERTING CASP TO LOTUS
  3608.        
  3609.             There is  a conversion program on the supplemental files diskette
  3610.        of the  CASP package  called LCHANGE.   LCHANGE is designed to convert
  3611.        ETB patient  files and  TAB cross-tabulation  results files  to  Lotus
  3612.        print files.
  3613.        
  3614.             The purpose  for the  conversion program  is to  give  users  the
  3615.        option of  using the  graphic  output  capabilities  in  Lotus.    The
  3616.        program's      instructions      appear      on      the      screen.